- Timestamp:
- 10/17/2007 12:14:30 (13 months ago)
- Location:
- trunk/ext/php
- Files:
-
- 2 modified
-
phpext.c (modified) (2 diffs)
-
phpunit-tests/TestDump.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ext/php/phpext.c
r280 r281 383 383 char *classname = emalloc(classname_len + 1); 384 384 zend_class_entry **ce; 385 zval param;385 zval *param; 386 386 TSRMLS_FETCH(); 387 387 … … 402 402 403 403 object_init_ex(o, *ce); 404 ZVAL_STRINGL(¶m, n->data.str->ptr, n->data.str->len, 1); 405 zend_call_method_with_1_params(&o, *ce, NULL, "unserialize", NULL, ¶m); 404 MAKE_STD_ZVAL(param); 405 ZVAL_STRINGL(param, n->data.str->ptr, n->data.str->len, 1); 406 zend_call_method_with_1_params(&o, *ce, NULL, "unserialize", NULL, param); 407 zval_ptr_dtor(¶m); 406 408 } else { 407 409 php_error(E_NOTICE, "syck extension didn't handle %s type => treating as a string", n->type_id); -
trunk/ext/php/phpunit-tests/TestDump.php
r279 r281 60 60 $this->assertEquals($obj, syck_load(syck_dump($obj))); 61 61 } 62 63 public function testDatetime() 64 { 65 $obj = new DateTime(); 66 $this->assertEquals($obj, syck_load(syck_dump($obj))); 67 } 62 68 }