#50322 [Bgs]: php5.2.11 breaks with <

From: Date: Mon, 30 Nov 2009 00:50:46 +0000
Subject: #50322 [Bgs]: php5.2.11 breaks with <
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-145195@lists.php.net to get a copy of this message
 ID:               50322
 User updated by:  rafarataneneces at gmail dot com
 Reported By:      rafarataneneces at gmail dot com
 Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Cent Os 64bit
 PHP Version:      5.2.11
 New Comment:

Testing<br> 
add string<br> 
<testing><br> 


Oh ok, I got it

so my browser thinks it's HTML?

I thought it was PHP error


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

[2009-11-29 16:21:18] rasmus@php.net

If you did a view source you would see the raw <> tags there.  PHP 
prints them out nicely.  It is your browser interpreting them as html 
tags which means you can only see them when you view the source. 

------------------------------------------------------------------------

[2009-11-29 16:13:16] rafarataneneces at gmail dot com

yeah rasmus@php.net

------------------------------------------------------------------------

[2009-11-29 08:37:47] rasmus@php.net

Uh, you did a "view source" right?

------------------------------------------------------------------------

[2009-11-29 08:01:29] rafarataneneces at gmail dot com

Description:
------------
PHP breaks when I add "<" to any string

For example

$test="Test<ing";

echo $test

the result would be

Test

Instead of

Test<ing

This ONLY happens when running using the apache module.

If I run with command line, with the PHP binary, it works ok

Reproduce code:
---------------
$test="Testing<br>\n";
$test.="adding string\n";
$test.="<testing>\n";
echo $test;

Expected result:
----------------
Testing<br>
adding string
<testing>

Actual result:
--------------
Testing
adding string

------------------------------------------------------------------------

[2009-11-29 08:00:42] rafarataneneces at gmail dot com

Description:
------------
PHP breaks when I add "<" to any string

For example

$test="Test<ing";

echo $test

the result would be

Test

Instead of

Testing

This ONLY happens when running using the apache module.

If I run with command line, with the PHP binary, it works ok

Reproduce code:
---------------
$test="Testing<br>\n";
$test.="adding string\n";
$test.="<testing>\n";
echo $test;

Expected result:
----------------
Testing<br>
adding string
<testing>

Actual result:
--------------
Testing
adding string


------------------------------------------------------------------------


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



Thread (6 messages)

« previous php.bugs (#145195) next »