mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-7.3' into PHP-7.4
This commit is contained in:
commit
ebfa05677b
2 changed files with 17 additions and 0 deletions
|
@ -248,6 +248,7 @@ zend_op_array *phpdbg_compile_file(zend_file_handle *file, int type) {
|
||||||
} else {
|
} else {
|
||||||
zend_message_dispatcher(ZMSG_FAILED_INCLUDE_FOPEN, file->filename);
|
zend_message_dispatcher(ZMSG_FAILED_INCLUDE_FOPEN, file->filename);
|
||||||
}
|
}
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
data.buf = estrndup(bufptr, len);
|
data.buf = estrndup(bufptr, len);
|
||||||
|
|
16
sapi/phpdbg/tests/bug78297.phpt
Normal file
16
sapi/phpdbg/tests/bug78297.phpt
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
--TEST--
|
||||||
|
Bug #78297: Include unexistent file memory leak
|
||||||
|
--PHPDBG--
|
||||||
|
r
|
||||||
|
q
|
||||||
|
--FILE--
|
||||||
|
<?php
|
||||||
|
include "does_not_exist.php";
|
||||||
|
--EXPECTF--
|
||||||
|
[Successful compilation of %s]
|
||||||
|
prompt>
|
||||||
|
Warning: include(%s): failed to open stream: No such file or directory in %s on line %d
|
||||||
|
|
||||||
|
Warning: include(): Failed opening 'does_not_exist.php' for inclusion (include_path=%s) in %s on line %d
|
||||||
|
[Script ended normally]
|
||||||
|
prompt>
|
Loading…
Add table
Add a link
Reference in a new issue