1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/ext/standard/tests/streams/bug74951.phpt
T
2017-07-19 22:41:09 +02:00

13 lines
342 B
PHP

--TEST--
Bug#74951 Null pointer dereference in user streams
--FILE--
<?php
trait Stream00ploiter{
public function s() {}
public function n($_) {}
}
stream_wrapper_register('e0ploit','Stream00ploiter');
$s=fopen('e0ploit://',0);
--EXPECTF--
Warning: fopen(e0ploit://): failed to open stream: operation failed in %s%ebug74951.php on line 7