Arquivos
hhvm/hphp/test/quick/exceptions.php.expectf
T
Paul Tarjan ebf437281c Don't escape exception error messages in command line mode
The main impetuous was "\" is the namespace character, so I want namespace errors to not have double backslashes everywhere.

After finding that, it turned out we were escaping all exceptions in the command line, which is wrong. We only want the escaping when we are in server mode (emulating apache)

I basically pushed what we were doing in ##error_log## down to ##Logger::Log##.
2013-05-30 17:39:24 -07:00

37 linhas
1.1 KiB
Plaintext

bar 0
caught 1
bar 1
bar 2
caught 2
before
caught
caught exception
string(%d) "#0 %s/test/quick/exceptions.php(91): c()
#1 %s/test/quick/exceptions.php(88): b()
#2 %s/test/quick/exceptions.php(99): a()
#3 %s/test/quick/exceptions.php(111): main3()
#4 {main}"
string(16) "hello, exception"
string(%d) "#0 %s/test/quick/exceptions.php(91): c()
#1 %s/test/quick/exceptions.php(88): b()
#2 %s/test/quick/exceptions.php(99): a()
#3 %s/test/quick/exceptions.php(111): main3()
#4 {main}"
Exception from %s/test/quick/exceptions.php:96
string(%d) "#0 %s/test/quick/exceptions.php(91): c()
#1 %s/test/quick/exceptions.php(88): b()
#2 %s/test/quick/exceptions.php(99): a()
#3 %s/test/quick/exceptions.php(111): main3()
#4 {main}"
bar 3
caught 3
HipHop Fatal error: Uncaught exception 'Ex3' with message '' in %s/test/quick/exceptions.php:21
Stack trace:
#0 %s/test/quick/exceptions.php(28): bar()
#1 %s/test/quick/exceptions.php(35): foo2()
#2 %s/test/quick/exceptions.php(39): foo1()
#3 (): foo()
#4 %s/test/quick/exceptions.php(105): array_map()
#5 %s/test/quick/exceptions.php(111): main3()
#6 {main}