cvs: ZendEngine2(PHP_5_2) /tests exception_009.phpt
| From: | Felipe Pena | Date: | Thu, 14 Aug 2008 19:17:13 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_2) /tests exception_009.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-7053@lists.php.net to get a copy of this message | ||
felipe Thu Aug 14 19:17:13 2008 UTC
Added files: (Branch: PHP_5_2)
/ZendEngine2/tests exception_009.phpt
Log:
- New test
http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/exception_009.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/exception_009.phpt
+++ ZendEngine2/tests/exception_009.phpt
--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 Unicode string in Unknown
on line 0