4b8304f07a
We have a catch trace that does a SpillStack for both of these helpers. Incidentally, zend raises a fatal if you try to throw in this situation. Differential Revision: D944079
13 linhas
224 B
PHP
13 linhas
224 B
PHP
<?php
|
|
|
|
class foo {
|
|
public function __destruct() { echo "dtor\n"; }
|
|
public function __toString() { throw new Exception("asd"); }
|
|
}
|
|
|
|
function main() {
|
|
echo (string)(new foo());
|
|
}
|
|
|
|
try { main(); } catch (Exception $x) {}
|