PHP 4.0 Bug #7056 Updated: Setting string variables to value starting with '<' cause string to be empty.
| From: | Bug Database | Date: | Tue, 10 Oct 2000 12:36:18 +0000 |
| Subject: | PHP 4.0 Bug #7056 Updated: Setting string variables to value starting with '<' cause string to be empty. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34581@lists.php.net to get a copy of this message | ||
ID: 7056
Updated by: stas
Reported By: tammy@synchronis.com
Status: Closed
Bug Type: *General Issues
Assigned To:
Comments:
You probably are looking on it from a browser. browser shows HTMl, i.e. it won't show a <
because it thinks it's an HTML tag.
Previous Comments:
---------------------------------------------------------------------------
[2000-10-06 12:34:20] tammy@synchronis.com
Setting a variable in any of the following ways and then printing it will show no value for the
variable. Note that the string can start with any whitespace as well - e.g. ' <' will
not work either. And setting to for example ' < blah' will still not work but setting
to ' x < blah' will print 'x'. Is this expected behavior?! How do I set a
string that includes the '<' character? Also, I thought strings quoted with single
quotes were not parsed ?
$fonts = array('heading' => 'FONT FACE="ARIAL,HELVETICA,SANS-SERIF"
SIZE="3">',
'column' => 'FONT FACE="ARIAL,HELVETICA,SANS-SERIF"
SIZE="2">');
$fonts['heading'] = '<' . 'FONT
FACE="ARIAL,HELVETICA,SANS-SERIF" SIZE="3">';
$fonts['column'] = "<FONT FACE="ARIAL,HELVETICA,SANS-SERIF"
SIZE="2">";
$foo = '<FONT FACE="ARIAL,HELVETICA,SANS-SERIF" SIZE="3">';
echo "foo: $foo <BR>";
dumpList('fonts', $fonts); // this just prints the list.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7056