Changeset 321 for trunk/ext/php

Show
Ignore:
Timestamp:
06/02/2008 07:12:55 (6 months ago)
Author:
indeyets
Message:

php 5.2 compatibility

Files:
1 modified

Legend:

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

    r319 r321  
    774774                                zval constant; 
    775775 
     776#if ZEND_MODULE_API_NO >= 20071006 
    776777                                zend_get_constant_ex("DateTime::ISO8601", 17, &constant, ce, 0 TSRMLS_CC); 
     778#else 
     779                                zend_get_constant_ex("DateTime::ISO8601", 17, &constant, ce TSRMLS_CC); 
     780#endif 
    777781                                zend_call_method_with_1_params(&data, ce, NULL, "format", &retval, &constant); 
    778782