Changeset 278 for trunk/ext/php
- Timestamp:
- 10/05/2007 05:04:14 (14 months ago)
- Location:
- trunk/ext/php
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/ext/php/CHANGELOG
r277 r278 4 4 status: beta 5 5 changes: 6 - short-and-flat arrays are dumped using inline-mode now (for readability)7 6 - gcc-2.95 compatibility (patch by Brian J. France) 8 7 - fixed dumping of mixed arrays and numeric-arrays starting from non-zero digit 8 - fixed loading of maps with numeric keys 9 - short-and-flat arrays are dumped using inline-mode now (for readability) 9 10 - added support for loading explicitly typed DateTime (with timestamp-compatible value) 10 - fixed loading of maps with numeric keys11 11 - added support for loading sequences into classes which implement ArrayAccess (!php/array:ClassName) 12 12 - added support for loading maps into classes which implement ArrayAccess (!php/hash:ClassName) 13 13 - added support for loading classes which implement Serializable (!php:ClassName) 14 - changed explicit type of DateTime class to be !php:DateTime 14 15 15 16 - version: 0.9.1 -
trunk/ext/php/phpext.c
r277 r278 360 360 } else if (strcmp(n->type_id, "float#neginf") == 0) { 361 361 ZVAL_DOUBLE(o, -inf()); 362 } else if (strncmp(n->type_id, "timestamp", 9) == 0 || strcmp(n->type_id, "php: YAML::Datetime") == 0) {362 } else if (strncmp(n->type_id, "timestamp", 9) == 0 || strcmp(n->type_id, "php:Datetime") == 0) { 363 363 zval fname, param, *params[1]; 364 364 TSRMLS_FETCH(); … … 374 374 zval_dtor(params[0]); 375 375 } else if (strncmp(n->type_id, "php:", 4) == 0) { 376 /* Some custom php-class packed in a string. Only ones implementing Serializable ar supported */ 376 377 size_t classname_len = strlen(n->type_id) - 4; 377 378 char *classname = emalloc(classname_len + 1); -
trunk/ext/php/phpunit-tests/TestLoad.php
r277 r278 165 165 166 166 // explicit 167 $this->assertType('DateTime', syck_load("!php: YAML::Datetime 2002-12-14"));167 $this->assertType('DateTime', syck_load("!php:Datetime 2002-12-14")); 168 168 } 169 169