#7056 [Com]: Setting string variables to value starting with '<' cause string to be empty.

2003-10-26 Thread davidgjenkins at ntlworld dot com
 ID:   7056
 Comment by:   davidgjenkins at ntlworld dot com
 Reported By:  tammy at synchronis dot com
 Status:   Closed
 Bug Type: *General Issues
 Operating System: redhat linux 5.2
 PHP Version:  4.0.2
 New Comment:

The previous comment is extremely condesending and does not help.

I am trying to produce the string '"Any Person
<[EMAIL PROTECTED]>" to put in an email with a long
circulation list using Sendmail. The string has to be created from two
database entries - Any Person and [EMAIL PROTECTED] 

If I combine the strings within the database and export it PHP
truncates it at '<' giving the result '"Any Person ' as the email
address.

I see '<' has a special function in HEREDOC string usuage but ?


Previous Comments:
----------------

[2003-10-27 01:51:14] davidgjenkins at ntlworld dot com

The previous comment is extremely condesending and does not help.

I am trying to produce the string '"Any Person
<[EMAIL PROTECTED]>" to put in an email with a long
circulation list using Sendmail. The string has to be created from two
database entries - Any Person and [EMAIL PROTECTED] 

If I combine the strings within the database and export it PHP
truncates it at '<' giving the result '"Any Person ' as the email
address.

I see '<' has a special function in HEREDOC string usuage but ?



[2000-10-10 08:36:18] [EMAIL PROTECTED]

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.



[2000-10-06 12:34:20] tammy at synchronis dot 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'] = "\";
  $foo = '';
echo "foo: $foo ";
dumpList('fonts', $fonts);  // this just prints the
list.

  






-- 
Edit this bug report at http://bugs.php.net/?id=7056&edit=1


#7056 [Com]: Setting string variables to value starting with '<' cause string to be empty.

2003-10-26 Thread davidgjenkins at ntlworld dot com
 ID:   7056
 Comment by:   davidgjenkins at ntlworld dot com
 Reported By:  tammy at synchronis dot com
 Status:   Closed
 Bug Type: *General Issues
 Operating System: redhat linux 5.2
 PHP Version:  4.0.2
 New Comment:

The previous comment is extremely condesending and does not help.

I am trying to produce the string '"Any Person
<[EMAIL PROTECTED]>" to put in an email with a long
circulation list using Sendmail. The string has to be created from two
database entries - Any Person and [EMAIL PROTECTED] 

If I combine the strings within the database and export it PHP
truncates it at '<' giving the result '"Any Person ' as the email
address.

I see '<' has a special function in HEREDOC string usuage but ?


Previous Comments:


[2000-10-10 08:36:18] [EMAIL PROTECTED]

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.



[2000-10-06 12:34:20] tammy at synchronis dot 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'] = "\";
  $foo = '';
echo "foo: $foo ";
dumpList('fonts', $fonts);  // this just prints the
list.

  






-- 
Edit this bug report at http://bugs.php.net/?id=7056&edit=1