Changeset 325
- Timestamp:
- 07/22/2008 05:41:52 (4 months ago)
- Location:
- trunk/ext/php
- Files:
-
- 2 modified
-
phpext.c (modified) (1 diff)
-
phpunit-tests/TestLoad.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ext/php/phpext.c
r324 r325 609 609 endl[0] = '\0'; 610 610 611 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); 612 613 Z_SET_REFCOUNT_P(exc, 2); 614 615 st_foreach(p->syms, my_cleaner, NULL); 616 617 p->bonus = exc; 611 if (NULL == p->bonus) { 612 /* silence second exceptions */ 613 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); 614 615 Z_SET_REFCOUNT_P(exc, 2); 616 617 p->bonus = exc; 618 } 619 620 if (p->syms) 621 st_foreach(p->syms, my_cleaner, NULL); 618 622 } 619 623 -
trunk/ext/php/phpunit-tests/TestLoad.php
r298 r325 218 218 } 219 219 } 220 221 public function testBugPECL_14384() 222 { 223 $broken_string = 'test: 224 var: value 225 var2: value2'; 226 227 try { 228 syck_load($broken_string); 229 $this->assertTrue(false); 230 } catch (SyckException $e) { 231 $this->assertTrue(true); 232 } 233 } 220 234 }