ID:               36747
 Updated by:       [EMAIL PROTECTED]
 Reported By:      s dot manzari at icom dot de
 Status:           Open
-Bug Type:         *Directory/Filesystem functions
+Bug Type:         Documentation problem
 Operating System: Sun 5.10
 PHP Version:      4.4.2
 New Comment:

No glob() in glibc -> no glob() in PHP.
Reclassified as docu problem.


Previous Comments:
------------------------------------------------------------------------

[2006-03-15 18:01:05] s dot manzari at icom dot de

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 this bug report at http://bugs.php.net/?id=36747&edit=1

Reply via email to