067e38c23d
If the profiler hook throws (and it used to not be able to), we can decref a local twice. The generic return case is safe, but the inline return case wasn't zeroing the type.
22 linhas
297 B
PHP
22 linhas
297 B
PHP
<?php
|
|
|
|
# bug #2088495
|
|
function asd($x, $y) {
|
|
if ($x == 'exit' && $y == 'foo') {
|
|
echo "yep\n";
|
|
throw new Exception ('yo');
|
|
}
|
|
echo "hi $x $y\n";
|
|
}
|
|
fb_setprofile('asd');
|
|
|
|
function foo() {
|
|
$x = new stdclass;
|
|
}
|
|
|
|
try {
|
|
foo();
|
|
} catch (Exception $x) {
|
|
echo $x->getMessage() . "\n";
|
|
}
|