. Fixed bug #67626 (User exceptions not properly handled in streams).
(Julian)
. Fixed bug #68917 (parse_url fails on some partial urls). (Wei Dai)
+ . Fixed bug #69212 (Leaking VIA_HANDLER func when exception thrown in
+ __call/... arg passing). (Nikita)
- Filter:
. Fixed bug #69202: (FILTER_FLAG_STRIP_BACKTICK ignored unless other
--- /dev/null
+--TEST--
+Bug #69212: Leaking VIA_HANDLER func when exception thrown in __call/... arg passing
+--FILE--
+<?php
+
+class Test {
+ public static function __callStatic($method, $args) {}
+ public function __call($method, $args) {}
+}
+
+function do_throw() { throw new Exception; }
+
+try {
+ Test::foo(do_throw());
+} catch (Exception $e) {
+ echo "Caught!\n";
+}
+try {
+ (new Test)->bar(do_throw());
+} catch (Exception $e) {
+ echo "Caught!\n";
+}
+
+?>
+--EXPECT--
+Caught!
+Caught!
}
zval_ptr_dtor(&call->object);
}
+ if (call->fbc->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) {
+ efree((char *) call->fbc->common.function_name);
+ efree(call->fbc);
+ }
call--;
} while (call >= EX(call_slots));
EX(call) = NULL;
}
zval_ptr_dtor(&call->object);
}
+ if (call->fbc->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) {
+ efree((char *) call->fbc->common.function_name);
+ efree(call->fbc);
+ }
call--;
} while (call >= EX(call_slots));
EX(call) = NULL;