ID: 50399 Comment by: ikickdogsforfun at hotmail dot com Reported By: ikickdogsforfun at hotmail dot com Status: Assigned Bug Type: Reproducible crash Operating System: Debian 5 PHP Version: 5.3.1 Assigned To: dmitry New Comment:
Thanks guys that fixed it. I replaced: ZEND_SET_SYMBOL(Z_ARRVAL_PP(SERVER), name, type); with: php_register_variable_ex(name, type, PG(http_globals)[TRACK_VARS_SERVER]); No segfault. I assume that method is either incorrect or not properly supported via the embedded SAPI. Nevermind, fixed and I'll just replace the other methods with this method using the track vars :) Previous Comments: ------------------------------------------------------------------------ [2009-12-07 18:46:06] j...@php.net See also bug #50382 ------------------------------------------------------------------------ [2009-12-07 17:36:06] scott...@php.net Can you try using the following within php_set_superglobal_server as the way to modify the _SERVER value. php_register_variable_ex("name", type, PG(http_globals)[TRACK_VARS_SERVER]); Also you don't need to destroy the servers zval, it will be handled by php_embed_shutdown() ------------------------------------------------------------------------ [2009-12-07 15:33:32] paj...@php.net Dmitry, can you take a look at it pls? ------------------------------------------------------------------------ [2009-12-07 15:28:19] ikickdogsforfun at hotmail dot com I added that line to my php.ini and checked phpinfo(); which showed zend.gc=off Still having the same problem I'm afraid and valgrind output shows segfault at the same location. ------------------------------------------------------------------------ [2009-12-07 14:20:40] paj...@php.net Can you try with: zend.enable_gc=Off In your php.ini please? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/50399 -- Edit this bug report at http://bugs.php.net/?id=50399&edit=1