mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
ef19fba2d5
already fixed in trunk/5.3 and now merged onto 5.4 and a leak introduced in fixing bug #61115. This better fix for #61115 fixes the leak (the inhibition for deleting the context was too broad) and so prevents segfaults in new circumstances (where the inhibition was not broad enough).
11 lines
223 B
PHP
11 lines
223 B
PHP
--TEST--
|
|
Bug #61115: Stream related segfault on fatal error in php_stream_context_del_link - variation 2
|
|
--FILE--
|
|
<?php
|
|
stream_socket_client('abc', $var, $var, 0, STREAM_CLIENT_PERSISTENT);
|
|
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
==DONE==
|