Created
June 12, 2014 20:38
-
-
Save quinn/a78a457b9510cc046f7c to your computer and use it in GitHub Desktop.
error output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
register_shutdown_function('what_happened'); | |
function what_happened () { | |
$reflFunc = new ReflectionFunction('ldap_escape'); | |
echo "\nthe function location:\n"; | |
echo $reflFunc->getFileName() . ':' . $reflFunc->getStartLine() . "\n"; | |
var_dump($reflFunc); | |
echo "the error:\n"; | |
echo var_dump(error_get_last()); | |
} | |
include_once('cleanup_funcs.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
the function location: | |
: | |
object(ReflectionFunction)#1 (1) { | |
["name"]=> | |
string(11) "ldap_escape" | |
} | |
the error: | |
array(4) { | |
["type"]=> | |
int(64) | |
["message"]=> | |
string(30) "Cannot redeclare ldap_escape()" | |
["file"]=> | |
string(66) "/Users/quinn/Code/reason_package/carl_util/basic/cleanup_funcs.php" | |
["line"]=> | |
int(124) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment