summaryrefslogtreecommitdiff
path: root/tests/lang/038.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/038.phpt')
-rw-r--r--tests/lang/038.phpt22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/lang/038.phpt b/tests/lang/038.phpt
index 92f340c3f2..677c11be9c 100644
--- a/tests/lang/038.phpt
+++ b/tests/lang/038.phpt
@@ -5,17 +5,17 @@ Convert warnings to exceptions
class MyException extends Exception
{
- function __construct($errstr, $errno=0, $errfile='', $errline='')
- {
- parent::__construct($errstr, $errno);
- $this->file = $errfile;
- $this->line = $errline;
- }
+ function __construct($errstr, $errno=0, $errfile='', $errline='')
+ {
+ parent::__construct($errstr, $errno);
+ $this->file = $errfile;
+ $this->line = $errline;
+ }
}
function Error2Exception($errno, $errstr, $errfile, $errline)
{
- throw new MyException($errstr, $errno);//, $errfile, $errline);
+ throw new MyException($errstr, $errno);//, $errfile, $errline);
}
$err_msg = 'no exception';
@@ -23,13 +23,13 @@ set_error_handler('Error2Exception');
try
{
- $con = fopen("/tmp/a_file_that_does_not_exist",'r');
+ $con = fopen("/tmp/a_file_that_does_not_exist",'r');
}
catch (Exception $e)
{
- $trace = $e->getTrace();
- var_dump($trace[0]['function']);
- var_dump($trace[1]['function']);
+ $trace = $e->getTrace();
+ var_dump($trace[0]['function']);
+ var_dump($trace[1]['function']);
}
?>