Changeset 303 for trunk/ext/php

Show
Ignore:
Timestamp:
03/31/2008 11:36:47 (8 months ago)
Author:
indeyets
Message:

php 5.3 compatibility (not finished)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ext/php/phpext.c

    r299 r303  
    193193        ZEND_MOD_REQUIRED("spl") 
    194194        ZEND_MOD_REQUIRED("hash") 
     195        ZEND_MOD_REQUIRED("date") 
    195196        {NULL, NULL, NULL} 
    196197}; 
     
    603604 
    604605        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 
    605610        exc->refcount = 2; // hack 
     611#endif 
    606612 
    607613        st_foreach(p->syms, my_cleaner, NULL); 
     
    755761                                zval constant; 
    756762 
    757                                 zend_get_constant("DateTime::ISO8601", 17, &constant TSRMLS_CC); 
     763                                zend_get_constant_ex("DateTime::ISO8601", 17, &constant, ce, 0 TSRMLS_CC); 
    758764                                zend_call_method_with_1_params(&data, ce, NULL, "format", &retval, &constant); 
    759765