mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
add test for #35740
This commit is contained in:
parent
aec3b4e73c
commit
84326a9b72
14
ext/standard/tests/file/bug35740.phpt
Normal file
14
ext/standard/tests/file/bug35740.phpt
Normal file
@ -0,0 +1,14 @@
|
||||
--TEST--
|
||||
bug #35740 (memory leak when including a directory)
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
include (dirname(__FILE__));
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: include(%s): failed to open stream: %s in %s on line %d
|
||||
|
||||
Warning: include(): Failed opening '%s' for inclusion (include_path='%s') in %s on line %d
|
||||
Done
|
Loading…
Reference in New Issue
Block a user