Bug #65325 [NEW]: function glob malfunction
| From: | jacob at prodemge dot gov dot br | Date: | Wed, 24 Jul 2013 14:45:39 +0000 |
| Subject: | Bug #65325 [NEW]: function glob malfunction | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-180465@lists.php.net to get a copy of this message | ||
From: jacob at prodemge dot gov dot br
Operating system: Linux appgmo 2.6.32-220.el6.x86_
PHP version: Irrelevant
Package: *Directory/Filesystem functions
Bug Type: Bug
Bug description:function glob malfunction
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
--
Edit bug report at https://bugs.php.net/bug.php?id=65325&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65325&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65325&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65325&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65325&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65325&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65325&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65325&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65325&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65325&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65325&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65325&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65325&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65325&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65325&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65325&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65325&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65325&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65325&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65325&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65325&r=mysqlcfg