PHP 4.0 Bug #8672: Crash when returning a variable from function as argument
| From: | bf at ez dot no | Date: | Fri, 12 Jan 2001 10:30:39 +0000 |
| Subject: | PHP 4.0 Bug #8672: Crash when returning a variable from function as argument | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43847@lists.php.net to get a copy of this message | ||
From: bf@ez.no
Operating system: Redhat Linux 6.2
PHP version: 4.0.4
PHP Bug Type: Reproduceable crash
Bug description: Crash when returning a variable from function as argument
I had code like this:
$user = new eZUser( $session->variable("AuthenticatedUser" ) );
And I noticed now that this creates a segfault in php.
The workaround is changing the code to:
$val = $session->variable( "AuthenticatedUser" );
$user = new eZUser( $val );
The code worked with php-4.0.3pl1 and has worked with
4.0.4, but it's reproduceable and I think it's a PHP bug.
The eZSession::variable() function returns a string value.
I've tested it with 4.0.4pl1 and the bug is still there.
--
Edit Bug report at: http://bugs.php.net/?id=8672&edit=1