mirror of
https://github.com/php/php-src.git
synced 2024-11-30 21:35:36 +08:00
work around apache segfault for the moment
This commit is contained in:
parent
30647934a4
commit
6beb1e37a8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user