--- /dev/null
+--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
_default_exception_get_entry(exception, "file", sizeof("file")-1, &file TSRMLS_CC);
_default_exception_get_entry(exception, "line", sizeof("line")-1, &line TSRMLS_CC);
- convert_to_long(&line);
+ convert_to_unicode(&message);
+ convert_to_unicode(&file);
+ convert_to_long(&line);
fci.size = sizeof(fci);
fci.function_table = &Z_OBJCE_P(getThis())->function_table;