From:
Operating system: Linux Mint 12
PHP version: 5.3.10
Package: SPL related
Bug Type: Bug
Bug description:Segmentation foult using FiltesystemIterator & RegexIterator
Description:
------------
melkorm@bibiop ~/htdocs/test.dev $ php -v
PHP 5.3.10-1~dotdeb.1 with Suhosin-Patch (cli) (built: Feb 2 2012
23:28:08)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH
Test script:
---------------
$fileIterator = new FilesystemIterator(__DIR__,
FilesystemIterator::KEY_AS_FILENAME);
$regexpIterator = new RegexIterator($fileIterator,
$regexpIterator = new RegexIterator($fileIterator,
'#.*#',
'#.*#',
\RegexIterator::MATCH,
\RegexIterator::MATCH,
\RegexIterator::USE_KEY
\RegexIterator::USE_KEY
);
);
foreach ($fileIterator as $key => $file)
foreach ($fileIterator as $key => $file)
{
}
Actual result:
--------------
Segemntation foult
strace output can be found here : http://pastebin.com/CFV6qepj
--
Edit bug report at https://bugs.php.net/bug.php?id=61418&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=61418&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=61418&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=61418&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=61418&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=61418&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=61418&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=61418&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=61418&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=61418&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=61418&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=61418&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=61418&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=61418&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=61418&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=61418&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61418&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=61418&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=61418&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=61418&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=61418&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=61418&r=mysqlcfg