#36815 [Opn->Fbk]: glob -> Segmentation fault
| From: | derick@php.net | Date: | Tue, 21 Mar 2006 15:33:30 +0000 |
| Subject: | #36815 [Opn->Fbk]: glob -> Segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94718@lists.php.net to get a copy of this message | ||
ID: 36815
Updated by: derick@php.net
Reported By: rd at mesos dot de
-Status: Open
+Status: Feedback
Bug Type: Directory function related
Operating System: Linux 2.6.14.5
PHP Version: 5.1.2
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-03-21 16:32:04] rd at mesos dot de
Description:
------------
glob returns segmentation fault, even with the example from php.net.
PHP4 on the same server is working without problem.
Reproduce code:
---------------
<?php
echo "Test1\n";
$x=glob('./img/managed/*');
echo "Test2\n";
?>
Expected result:
----------------
something like:
server:~ # php4 glob.php
X-Powered-By: PHP/4.4.2
Content-type: text/html
Test1
Test2
Actual result:
--------------
server:~ # php5 glob.php
X-Powered-By: PHP/5.1.2
Content-type: text/html
Test1
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36815&edit=1