ID:               21600
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Verified
 Bug Type:         Variables related
 Operating System: Redhat 8
 PHP Version:      4.3.0
 New Comment:

Verified with HEAD(ZE2) and PHP_4_3(ZE1).
The provided script causes segmentation fault.



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

[2003-01-12 15:07:10] [EMAIL PROTECTED]

under 4.3.0 with apache 2.0.40 I see this strange behavior with
aliasing:

$foo = "Philip Johnson's \"Glass House\" remains one of the most famous
residences in the world.";
$foo =& bar($foo);
print $foo;

function bar($text){
  return $text;
}

outputs: Philip Johnson's "Glass House" remains one of the most famous
residences in the worlh

This didn't happen under 4.2.3. Although really this was a mistake on
my part (I meant to do $foo = bar($foo)) it seems like strange behavior
nonetheless.

It's also strange to me that if I change 
return $text; 
to 
return "$text"; 
it works as I would expect.

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


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

Reply via email to