- Timestamp:
- 03/17/2008 07:57:55 (8 months ago)
- Location:
- trunk/ext/php
- Files:
-
- 1 added
- 4 modified
-
. (modified) (1 prop)
-
CHANGELOG (modified) (1 diff)
-
phpext.c (modified) (5 diffs)
-
phpunit-tests/TestLoad.php (modified) (1 diff)
-
phpunit-tests/bug31.yaml (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ext/php
-
Property
svn:ignore set
to
.deps
.gdb_history
.libs
Makefile
Makefile.fragments
Makefile.global
Makefile.objects
acinclude.m4
aclocal.m4
autom4te.cache
build
config.guess
config.h
config.h.in
config.log
config.nice
config.status
config.sub
configure
configure.in
include
install-sh
libtool
ltmain.sh
missing
mkinstalldirs
modules
run-tests.php
-
Property
svn:ignore set
to
-
trunk/ext/php/CHANGELOG
r294 r298 1 1 --- %YAML:1.0 2 - version: 0.9.3 3 date: 2008-??-?? 4 status: beta 5 changes: 6 - fixed bug#31 (broken yaml caused segfault) 7 2 8 - version: 0.9.2 3 9 date: 2007-11-22 -
trunk/ext/php/phpext.c
r297 r298 37 37 #endif 38 38 39 #define PHP_SYCK_VERSION "0.9. 2"39 #define PHP_SYCK_VERSION "0.9.3-dev" 40 40 41 41 /** … … 509 509 } 510 510 } else if (strncmp(n->type_id, "php/hash::", 10) == 0) { 511 /* some class mwhich implements ArrayAccess */511 /* some class which implements ArrayAccess */ 512 512 SYMID oid; 513 513 size_t i; … … 594 594 { 595 595 char *endl = p->cursor; 596 zval *exc; 596 597 TSRMLS_FETCH(); 597 598 … … 601 602 endl[0] = '\0'; 602 603 603 zend_throw_exception_ex(syck_exception_entry, 0 TSRMLS_CC, "%s on line %d, col %d: '%s'", str, p->linect, p->cursor - p->lineptr, p->lineptr); 604 exc = zend_throw_exception_ex(syck_exception_entry, 0 TSRMLS_CC, "%s on line %d, col %d: '%s'", str, p->linect, p->cursor - p->lineptr, p->lineptr); 605 exc->refcount = 2; // hack 604 606 605 607 st_foreach(p->syms, my_cleaner, NULL); … … 832 834 } 833 835 834 835 836 syck_free_parser(parser); 836 837 } -
trunk/ext/php/phpunit-tests/TestLoad.php
r285 r298 208 208 $this->assertSame('teststring', $obj->test()); 209 209 } 210 211 public function testBug31() 212 { 213 try { 214 $obj = syck_load(file_get_contents(dirname(__FILE__).'/bug31.yaml')); 215 $this->assertTrue(false); 216 } catch (SyckException $e) { 217 $this->assertTrue(true); 218 } 219 } 210 220 }