- Timestamp:
- 10/24/2007 17:25:38 (13 months ago)
- Files:
-
- 1 modified
-
trunk/ext/php/phpext.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ext/php/phpext.c
r292 r293 748 748 zend_get_object_classname(data, &name, &name_len TSRMLS_CC); 749 749 750 /* DateTime is encoded as timestamp */751 750 if (strncmp(name, "DateTime", name_len) == 0) { 751 /* DateTime is encoded as timestamp */ 752 752 zval *retval = NULL; 753 753 zval constant; … … 763 763 } else { 764 764 if (0 != instanceof_function_ex(ce, zend_ce_serializable, 1 TSRMLS_CC)) { 765 /* Some class which implements Serializable interface */ 765 766 char *prefix = "tag:php:object::"; 766 767 size_t prefix_len = strlen(prefix) + 1; … … 855 856 emitter = syck_new_emitter(); 856 857 emitter->bonus = extra; 858 emitter->use_header = 1; 859 emitter->use_version = 1; 857 860 858 861 syck_emitter_handler(emitter, php_syck_emitter_handler);