PHP 4.0 Bug #7056: Setting string variables to value starting with '<' cause string to be empty.

From: Date: Fri, 06 Oct 2000 16:34:20 +0000
Subject: PHP 4.0 Bug #7056: Setting string variables to value starting with '<' cause string to be empty.
Groups: php.dev 
Request: Send a blank email to php-dev+get-34357@lists.php.net to get a copy of this message
From: tammy@synchronis.com Operating system: redhat linux 5.2 PHP version: 4.0.2 PHP Bug Type: *General Issues Bug description: Setting string variables to value starting with '&lt;' cause string to be empty. 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.

« previous php.dev (#34357) next »