Re: PHP 4.0 Bug #7056 Updated: Setting string variables to value starting with '<' cause string to be empty.
| From: | tammy | Date: | Thu, 12 Oct 2000 03:31:45 +0000 |
| Subject: | Re: PHP 4.0 Bug #7056 Updated: Setting string variables to value starting with '<' cause string to be empty. | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-34729@lists.php.net to get a copy of this message | ||
Sigh.
I know this. But the point is I'm trying to print FONT tags TO a browser.
Their effects should show up. They don't. Then I do a 'View Source' and
voila, no FONT tag is there either. The problem is obviously deeper than
this. I'm working on tracking it down. I'll give ya an update later.
thanks
t
Begin forwarded message:
Return-Path: <root@php2.chek.com>
Date: 10 Oct 2000 12:36:18 -0000
To: tammy@synchronis.com
Subject: PHP 4.0 Bug #7056 Updated: Setting string variables to value
starting with '<' cause string to be empty.
From: Bug Database <php-dev@lists.php.net>
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