|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-15 18:09 UTC] tony2001@php.net
[2006-03-15 18:22 UTC] s dot manzari at icom dot de
[2006-03-15 18:27 UTC] simp@php.net
[2006-03-15 18:31 UTC] s dot manzari at icom dot de
[2006-08-11 16:50 UTC] nlopess@php.net
[2020-02-07 06:11 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 10:00:01 2025 UTC |
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