mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00

This allows reading the initial script file from stdin instead of being forced to put the script into a file in order to run it with phpdbg. Especially important for programmatic execution of phpdbg. Also adding tests/include_once.phpt and tests/set_exception_handler.phpt as I seem to have forgotten to git add them sometime long ago...
16 lines
237 B
PHP
16 lines
237 B
PHP
--TEST--
|
|
include_once must include only once
|
|
--PHPDBG--
|
|
r
|
|
q
|
|
--EXPECTF--
|
|
[Successful compilation of %s]
|
|
prompt> 1
|
|
[Script ended normally]
|
|
prompt>
|
|
--FILE--
|
|
<?php
|
|
|
|
include_once __DIR__.'/include.inc';
|
|
include_once __DIR__.'/include.inc';
|
|
|