go to bug id or search bugs for
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.
Add a Patch
Add a Pull Request
Can you try to reprocude this when php 4.0.5 will be released next week?
Does this happen with PHP 4.0.5 or not?
I can't reproduce this with 4.0.5. Seems to be fixed ;)