|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-03 07:56 UTC] hholzgra@php.net
[2003-07-03 09:41 UTC] hholzgra@php.net
[2003-07-03 16:21 UTC] acoon at acoon dot dk
[2003-07-04 01:47 UTC] sniper@php.net
[2003-07-04 09:43 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
Description: ------------ When using GLOB_ONLYDIR on FreeBSD 4.5 is returns an error. PHP was configured like this. './configure' '--with-mysql' '--with-apxs=/usr/local/sbin/apxs' '--with-curl' '--with-gd' '--with-jpeg-dir=/usr/local/include/' '--with-zlib-dir' '--enable-ftp' '--with-ttf' '--enable-bcmath' Changes made to php.ini: register_globals = On Reproduce code: --------------- <?php foreach (glob("*", GLOB_ONLYDIR) as $dir) { print "$dir is a dir!<BR>"; } ?> Expected result: ---------------- I would expect to get all dirs printet. Actual result: -------------- Warning: glob() expects parameter 2 to be long, string given in index.php on line 43