From: s dot manzari at icom dot de Operating system: Sun 5.10 PHP version: 4.4.2 PHP Bug Type: *Directory/Filesystem functions Bug description: glob() not defined
Description: ------------ the glob() function is not defined. Fatal error: Call to undefined function: glob() in /ifo.kt/test/htdocs/glob.php on line 4 Configuration: Sun OS 5.10 SPARC 64bit Apache/1.3.33 (Unix) PHP/4.4.2 mod_perl/1.29 Configure Command: './configure' '--with-oci8-instant-client=/usr/lib/oracle/10.1.0.3/client/lib' '--enable-ftp' '--enable-ssl' '--with-apxs=/usr/apache/bin/apxs' '--enable-track-vars' '--enable-bcmath' '--with-config-file-path=/etc' '--enable-shmop' '--with-dom' '--with-zlib-dir=/usr/local' It is my understanding, that the glob() function is available anytime after php 4.3 or so. It does work on php4.4 on a Sun 5.9 SPARC. Is there a special compile option required? Reproduce code: --------------- $files = glob("*.php"); foreach ($files as $filename) { echo "<br>$filename size " . filesize($filename) . " kb"; } Expected result: ---------------- index.php size 2367 kb info.php size 317 kb ll_test.php size 178 kb logout.php size 576 kb main.php size 1438 kb todo.php size 882 kb version.php size 2880 kb Actual result: -------------- Fatal error: Call to undefined function: glob() in /apache/htdocs/glob.php on line 4 -- Edit bug report at http://bugs.php.net/?id=36747&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36747&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36747&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36747&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36747&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36747&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36747&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36747&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36747&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36747&r=support Expected behavior: http://bugs.php.net/fix.php?id=36747&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36747&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36747&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36747&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36747&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36747&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36747&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36747&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36747&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36747&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36747&r=mysqlcfg