1--TEST-- 2show information about function 3--SKIPIF-- 4<?php 5include "skipif.inc"; 6if (!extension_loaded("reflection")) { 7 die("skip reflection extension required"); 8} 9?> 10--FILE-- 11<?php 12 13$php = getenv('TEST_PHP_EXECUTABLE'); 14 15var_dump(`$php -n --rf unknown`); 16var_dump(`$php -n --rf echo`); 17var_dump(`$php -n --rf phpinfo`); 18 19echo "Done\n"; 20?> 21--EXPECTF-- 22string(45) "Exception: Function unknown() does not exist 23" 24string(42) "Exception: Function echo() does not exist 25" 26string(119) "Function [ <internal:standard> function phpinfo ] { 27 28 - Parameters [1] { 29 Parameter #0 [ <optional> $what ] 30 } 31} 32 33" 34Done 35