mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +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...
19 lines
343 B
PHP
19 lines
343 B
PHP
--TEST--
|
|
set_exception_handler() in phpdbg
|
|
--PHPDBG--
|
|
r
|
|
c
|
|
q
|
|
--EXPECTF--
|
|
[Successful compilation of %s]
|
|
prompt> [Uncaught Exception in %s on line 4: test]
|
|
>00004: throw new Exception("test");
|
|
00005:
|
|
prompt> EX
|
|
[Script ended normally]
|
|
prompt>
|
|
--FILE--
|
|
<?php
|
|
|
|
set_exception_handler(function () { print "EX\n"; });
|
|
throw new Exception("test");
|