]> granicus.if.org Git - php/commitdiff
work around apache segfault for the moment
authorWez Furlong <wez@php.net>
Sat, 16 Mar 2002 13:50:17 +0000 (13:50 +0000)
committerWez Furlong <wez@php.net>
Sat, 16 Mar 2002 13:50:17 +0000 (13:50 +0000)
main/main.c

index 8311870b05a34bc20c27efdd079e2a64158c4c5e..e3faf52d881989635aefe0e16a9465d2fddee9a1 100644 (file)
@@ -573,7 +573,8 @@ static FILE *php_fopen_wrapper_for_zend(const char *filename, char **opened_path
                php_stream_sock_set_chunk_size(stream, 1);
 
                if (php_stream_cast(stream, PHP_STREAM_AS_STDIO | PHP_STREAM_CAST_TRY_HARD, (void**)&retval, 1) == SUCCESS)     {
-                       ZEND_REGISTER_RESOURCE(NULL, stream, php_file_le_stream());
+                       /* The leak here prevents a segfault */
+                       /*      ZEND_REGISTER_RESOURCE(NULL, stream, php_file_le_stream()); */
                }
                else    {
                        php_stream_close(stream);