Segfault if php_strip_whitespace has heredoc

 [2012-12-29 22:32 UTC] igor at wiedler dot ch

Description:
------------
When a filename that contains a heredoc is passed to php_strip_whitespace, it 
results in a segmentation fault / buffer overflow.

Here is the output from --enable-debug:

[Sat Dec 29 22:22:09 2012]  Script:  '/Users/igor/test.php'
---------------------------------------
/Users/igor/src/php-src/Zend/zend_highlight.c(189) : Block 0x1036a66d8 status:
Beginning:  	Cached
Freed (invalid)
    Start:	OK
      End:	OK
---------------------------------------

Test script:
---------------
<?php

$contents = php_strip_whitespace(__FILE__);

return <<<A
a
A;



 [2012-12-30 04:17 UTC] pierrick@php.net

-Summary: Buffer overflow if php_strip_whitespace has heredoc +Summary: Segfault if php_strip_whitespace has heredoc

 [2012-12-30 10:49 UTC] igor at wiedler dot ch

Fix confirmed. Thanks!