|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-14 12:05 UTC] tony2001@php.net
[2006-08-14 15:44 UTC] scottmacvicar at ntlworld dot com
[2006-08-14 15:44 UTC] scottmacvicar at ntlworld dot com
[2006-08-14 17:24 UTC] tony2001@php.net
[2006-08-23 17:53 UTC] scottmacvicar at ntlworld dot com
[2006-08-23 17:59 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 08:00:02 2025 UTC |
Description: ------------ Customer reported this issue and we've tracked it down to a segfault within token_get_all, we can't reproduce it on Linux or Windows but can on FreeBSD. php -v PHP 4.4.3 (cli) (built: Aug 14 2006 04:34:25) Copyright (c) 1997-2006 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies Reproduce code: --------------- <?php $tokens = token_get_all('<?php $var = 2; ?>'); var_dump($tokens); ?> Expected result: ---------------- Some output Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. 0x80d216d in _efree () (gdb) bt #0 0x80d216d in _efree () #1 0x80de408 in _zval_dtor () #2 0x4861f8e6 in tokenize () from /usr/local/lib/php/20020429/tokenizer.so #3 0x48620041 in zif_token_get_all () from /usr/local/lib/php/20020429/tokenizer.so #4 0x80f14bb in execute () #5 0x80df699 in zend_execute_scripts () #6 0x80ba79f in php_execute_script () #7 0x80f8241 in main () #8 0x805cf86 in _start ()