Changeset 303 for trunk/ext/php
- Timestamp:
- 03/31/2008 11:36:47 (8 months ago)
- Files:
-
- 1 modified
-
trunk/ext/php/phpext.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ext/php/phpext.c
r299 r303 193 193 ZEND_MOD_REQUIRED("spl") 194 194 ZEND_MOD_REQUIRED("hash") 195 ZEND_MOD_REQUIRED("date") 195 196 {NULL, NULL, NULL} 196 197 }; … … 603 604 604 605 exc = zend_throw_exception_ex(syck_exception_entry, 0 TSRMLS_CC, "%s on line %d, col %d: '%s'", str, p->linect + 1, p->cursor - p->lineptr, p->lineptr); 606 607 #if ZEND_MODULE_API_NO >= 20071006 608 Z_SET_REFCOUNT_P(exc, 2); 609 #else 605 610 exc->refcount = 2; // hack 611 #endif 606 612 607 613 st_foreach(p->syms, my_cleaner, NULL); … … 755 761 zval constant; 756 762 757 zend_get_constant ("DateTime::ISO8601", 17, &constantTSRMLS_CC);763 zend_get_constant_ex("DateTime::ISO8601", 17, &constant, ce, 0 TSRMLS_CC); 758 764 zend_call_method_with_1_params(&data, ce, NULL, "format", &retval, &constant); 759 765