Bug #8672 Updated: Crash when returning a variable from function as argument

From: Date: Wed, 16 May 2001 14:35:52 +0000
Subject: Bug #8672 Updated: Crash when returning a variable from function as argument
Groups: php.dev 
Request: Send a blank email to php-dev+get-55491@lists.php.net to get a copy of this message
ID: 8672 User Update by: bf@ez.no Old-Status: Feedback Status: Closed Bug Type: Variables related Operating system: Redhat Linux 6.2 PHP Version: 4.0.4 Description: Crash when returning a variable from function as argument I can't reproduce this with 4.0.5. Seems to be fixed ;) Previous Comments: --------------------------------------------------------------------------- [2001-05-16 01:02:47] sniper@php.net Does this happen with PHP 4.0.5 or not? --Jani --------------------------------------------------------------------------- [2001-04-28 14:45:15] derick@php.net Can you try to reprocude this when php 4.0.5 will be released next week? --------------------------------------------------------------------------- [2001-01-12 05:30:39] bf@ez.no 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. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8672

« previous php.dev (#55491) next »