Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a191144584
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (22 sloc) 0.515 kb
--TEST--
Test for bug #723: xdebug is stricter than PHP regarding Exception property types
--INI--
html_errors=0
display_errors=1
error_reporting=-1
--FILE--
<?php
class MyException extends Exception {
function __construct($message) {
parent::__construct($message);
$this->line = "42"; // this triggers it. if it's before the constructor, PHP freaks out regardless of xdebug
}
}
try {
throw new MyException('test');
} catch (Exception $ex) {
}
echo "survived";
?>
--EXPECTF--
survived
Jump to Line
Something went wrong with that request. Please try again.