summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-08-14 19:17:13 +0000
committerFelipe Pena <felipe@php.net>2008-08-14 19:17:13 +0000
commitf26f786362024a93ac2b6df7095c635265cdb2ee (patch)
treeff49d2c3aee78c2f95cf02ba06065c841a0ad4a7
parent99150463449e393371bc9f27afd8b7d8bd90daad (diff)
downloadphp-git-f26f786362024a93ac2b6df7095c635265cdb2ee.tar.gz
- New test
-rw-r--r--Zend/tests/exception_009.phpt28
1 files changed, 28 insertions, 0 deletions
diff --git a/Zend/tests/exception_009.phpt b/Zend/tests/exception_009.phpt
new file mode 100644
index 0000000000..b22b3aa66e
--- /dev/null
+++ b/Zend/tests/exception_009.phpt
@@ -0,0 +1,28 @@
+--TEST--
+Testing exception properties
+--FILE--
+<?php
+
+class my_file
+{
+ public function __toString()
+ {
+ return "somebuildfilename" ;
+ }
+}
+
+class my_exception extends exception
+{
+ public function __construct()
+ {
+ $this->message = new stdclass ;
+ $this->file = new my_file ;
+ $this->line = "12" ;
+ }
+}
+
+throw new my_exception;
+
+?>
+--EXPECT--
+Catchable fatal error: Object of class stdClass could not be converted to string in Unknown on line 0