php3-list | 199908
Date: 08/27/99
- Next message: Jacob Stetser: "[PHP3] Matching custom HTML style tags.."
- Previous message: Peter Sorger: "Re: [PHP3] Array Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 08:48 AM 8/27/99 -0400, you wrote:
>I have tried both from a unix shell (bash) and from a web browser. My
>original tests were command-line using 3.0.7 of php.cgi. As I'm running
>3.0.12 as an Apache module I decided that I'd better try it there as well.
>Same result. Are you saying that you can't duplicate this behavior?
You're right: I'm wrong.
\\ *IS* interpolated inside '' to turn into a single \. Every other \char
is not interpreted, so a single \ is left alone as a \. Weird. Very, very
weird. So the following are interpreted inside '':
String Result
\ \
\\ \
\\\ \\
\\\\ \\
\\\\\ \\\
More importantly, you *CANNOT* do this:
$foo = '\';
At least in 3.0.5 CGI, it generates a parse error about an illegal
character. Grrr. I had to put 'aaa \ bbb' just to test this:
http://l-i-e.com/test.htm
Potentially bug report time weird. Definitely worth adding a note to the
php web page.
I shudder to think what scripts this is going to break to fix.
Most likely, we're stuck with it, and you need \\ to get a single slash
inside '' *OR* "", and you just can't use '\' all by itself.
I was using 3.0.5 as CGI.
Sorry for the misinformation previously. I'd gotten so used to using ""
when I needed \n to be a newline and '' when I didn't want it interpreted,
I assumed \\ was the same. I was *so* wrong.
-- "TANSTAAFL" Websites I have built: CHaTMusic.com EmphasisEntertainment.com L-I-E.com JadeMaze.com CatCatalani.com MGMH.com AstraKelly.com OlivierLedoux.com-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Jacob Stetser: "[PHP3] Matching custom HTML style tags.."
- Previous message: Peter Sorger: "Re: [PHP3] Array Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

