diff options
author | Wez Furlong <wez@php.net> | 2002-03-16 13:50:17 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-03-16 13:50:17 +0000 |
commit | 6beb1e37a83742de386728e1e4080baec5cc0987 (patch) | |
tree | 035725eaa788bbf0d471881d2431e261dfddd31f /main/main.c | |
parent | 30647934a477f876992c3390ce483bb55a3eee51 (diff) | |
download | php-git-6beb1e37a83742de386728e1e4080baec5cc0987.tar.gz |
work around apache segfault for the moment
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/main.c b/main/main.c index 8311870b05..e3faf52d88 100644 --- a/main/main.c +++ b/main/main.c @@ -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); |