Bug #66751 [NEW]: php_strip_whitespace causes segmentation fault

From: Date: Fri, 21 Feb 2014 12:01:16 +0000
Subject: Bug #66751 [NEW]: php_strip_whitespace causes segmentation fault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184383@lists.php.net to get a copy of this message
From:             yu at hoaxster dot net
Operating system: OS X Mavericks
PHP version:      5.6.0alpha2
Package:          *General Issues
Bug Type:         Bug
Bug description:php_strip_whitespace causes segmentation fault

Description:
------------
php_strip_whitespace causes segmentation fault while parsing __CLASS__.

Test script:
---------------
# cat test.php
<?php __CLASS__ ?>

# php -r 'php_strip_whitespace(getcwd()."/test.php");'

Actual result:
--------------
[Fri Feb 21 20:57:50 2014]  Script:  '-'
---------------------------------------
/var/tmp/php-build/source/5.6.0alpha2/Zend/zend_highlight.c(214) : Block
0x10781c048 status:
Invalid pointer: ((size=0x0002b5a5) != (next.prev=0x444d4f4400000001))
Invalid pointer: ((prev=0x00000001) != (prev.size=0x0002b5a5))

-- 
Edit bug report at https://bugs.php.net/bug.php?id=66751&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=66751&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=66751&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=66751&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=66751&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=66751&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=66751&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=66751&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=66751&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=66751&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=66751&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=66751&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=66751&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=66751&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66751&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=66751&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=66751&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=66751&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66751&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=66751&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=66751&r=mysqlcfg



Thread (5 messages)

« previous php.bugs (#184383) next »