Changeset 293 for trunk

Show
Ignore:
Timestamp:
10/24/2007 17:25:38 (13 months ago)
Author:
indeyets
Message:

explicitly output yaml-version

Files:
1 modified

Legend:

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

    r292 r293  
    748748                        zend_get_object_classname(data, &name, &name_len TSRMLS_CC); 
    749749 
    750                         /* DateTime is encoded as timestamp */ 
    751750                        if (strncmp(name, "DateTime", name_len) == 0) { 
     751                                /* DateTime is encoded as timestamp */ 
    752752                                zval *retval = NULL; 
    753753                                zval constant; 
     
    763763                        } else { 
    764764                                if (0 != instanceof_function_ex(ce, zend_ce_serializable, 1 TSRMLS_CC)) { 
     765                                        /* Some class which implements Serializable interface */ 
    765766                                        char *prefix = "tag:php:object::"; 
    766767                                        size_t prefix_len = strlen(prefix) + 1; 
     
    855856        emitter = syck_new_emitter(); 
    856857        emitter->bonus = extra; 
     858        emitter->use_header = 1; 
     859        emitter->use_version = 1; 
    857860 
    858861        syck_emitter_handler(emitter, php_syck_emitter_handler);