php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65325 function glob malfunction
Submitted: 2013-07-24 14:45 UTC Modified: 2013-08-14 06:59 UTC
From: jacob at prodemge dot gov dot br Assigned:
Status: No Feedback Package: *Directory/Filesystem functions
PHP Version: Irrelevant OS: Linux appgmo 2.6.32-220.el6.x86_
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jacob at prodemge dot gov dot br
New email:
PHP Version: OS:

 

 [2013-07-24 14:45 UTC] jacob at prodemge dot gov dot br
Description:
------------
---
From manual page: http://www.php.net/function.glob#refsect1-function.glob-
returnvalues
---
                // /produtos/web/SOAP/wsdl/class.phpwsdl*.php
		$files=glob(dirname(__FILE__).'/'.'class.phpwsdl*.php');
not reached ->	echo "files ";print_r($files);echo "<br>"; 
		if($files!==false){
			$i=-1;
			$len=sizeof($files);
			while(++$i<$len){
				self::Debug('Load '.$files[$i]);
				require_once($files[$i]);
			}
		}else{
			self::Debug('"glob" failed');
		}

Test script:
---------------
		$files=glob(dirname(__FILE__).'/'.'class.phpwsdl*.php');
		echo "files ";print_r($files);echo "<br>";
		if($files!==false){
			$i=-1;
			$len=sizeof($files);
			while(++$i<$len){
				self::Debug('Load '.$files[$i]);
				require_once($files[$i]);
			}
		}else{
			self::Debug('"glob" failed');
		}


Expected result:
----------------
a list of files

Actual result:
--------------
the control never return to script

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-29 18:25 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2013-07-29 18:25 UTC] ab@php.net
Just calling glob() doesn't reproduce this for me. There must be something special   
involved, could you find out what that is? Maybe access right, high load, beyond 
... please check again and give a way to repro this.
 [2013-08-14 06:59 UTC] ab@php.net
-Status: Feedback +Status: No Feedback
 [2013-08-14 06:59 UTC] ab@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 09:01:29 2024 UTC