Show
Ignore:
Timestamp:
07/22/2008 05:41:52 (4 months ago)
Author:
indeyets
Message:

fixed PECL-bug 14384 (tabs in YAML cause segfault)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ext/php/phpunit-tests/TestLoad.php

    r298 r325  
    218218        } 
    219219    } 
     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    } 
    220234}