|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-04-06 05:04 UTC] krinklemail at gmail dot com
Description:
------------
While using parsekit (latest stable, v1.3.0) in a lint tool to test a larger code
base I ran into
"Segmentation fault: 11".
I reduced and reduced and reduced until I ended up with a very small example that
still caused.
Test script:
---------------
-- test.php
<?php
class Example {
static $foo = array( T_ABSTRACT, T_PRIVATE );
}
--- parse.php
<?php
$errors = array();
parsekit_compile_file(__DIR__ . '/test.php', $errors, PARSEKIT_SIMPLE);
var_dump($errors);
Expected result:
----------------
-- $ php parse.php
NULL
Actual result:
--------------
-- $ php parse.php
Segmentation fault: 11
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 09:00:02 2025 UTC |
It doesn't happen if I remove one of the array items. It doesn't happen if I remove random characters of it, ending up with invalid php syntax. It does happen if I leave only the php open tag, and open/close curly brace with a dollar sign in between: -- test.php <?php {$} What's going on !?