Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Moriyoshi Koizumi
cca80292fe
This check's always necessary.
2003-10-29 21:50:15 +00:00
Moriyoshi Koizumi
13f16d5690
MFB(r-1.109.2.12): A possible fix for bug #26026
2003-10-29 18:48:37 +00:00
Hartmut Holzgraefe
075e66cc08
signed/unsigned compiler warning fixes
2003-09-26 08:09:56 +00:00
Ilia Alshanetsky
0917a7f62f
Fixed bug #25583 (Incorrect handling of paths starting with / on win32
...
inside glob() function).
2003-09-20 02:51:20 +00:00
Marcus Boerger
54df2e14b4
Use correct macro
2003-08-02 13:49:12 +00:00
Ilia Alshanetsky
0bd1e86d4c
Fixed GLOB_ONLYDIR to work on GNU libc based system.
2003-07-23 21:41:44 +00:00
foobar
e209272db1
CS & WS fixes
2003-07-14 16:23:14 +00:00
Hartmut Holzgraefe
f49b1d2da0
make sure operator precedence is not playing tricks on us
...
(it worked before on gcc3.2/Linux and with VC++ 6, but not
with gcc3.1/MacOSX)
2003-07-04 13:24:47 +00:00
Hartmut Holzgraefe
00fbf2af67
VCWD awareness and (hopefully) windows compile fix
2003-07-03 14:54:03 +00:00
Hartmut Holzgraefe
a7edbe04ad
PHP glob() will now emulate GLOB_ONLYDIR on non-GNU systems
2003-07-03 14:34:02 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
foobar
fde80076ec
No C++ comments and extra tabs.
2003-06-04 05:45:54 +00:00
Hartmut Holzgraefe
c83ed19a7b
handle return value for "no matches" on systems that don't return
...
GLOB_NOMATCH consistent to those that do (return array(), not FALSE)
2003-06-03 11:01:16 +00:00
Thies C. Arntzen
747822c616
fixed FMR
2003-05-05 12:17:02 +00:00
Ilia Alshanetsky
912bef379d
Fixed compiler warning.
2003-02-27 23:53:55 +00:00
foobar
2b90480fa9
scandir -> php_scandir, alphasort -> php_alphasort
2003-02-19 09:27:29 +00:00
Ilia Alshanetsky
2d0f432490
Added scandir() function, which allows quick retrieval of all files &
...
directories within the specified path and sort the output in alphabetical
or reverse alphabetical order.
2003-01-28 01:48:57 +00:00
Edin Kadribasic
c7441b2379
Fixed bug #21597 (made glob() understand windows paths)
2003-01-27 16:29:47 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Melvyn Sopacua
0764c3101b
Verify if gl_pathv is not NULL, which it is, when GLOB_NOMATCH isn't
...
supported and there are no matches.
# BSDi/Mac OSX are affected.
2002-12-23 18:33:46 +00:00
foobar
dadfd6e94a
ws fix
2002-11-15 07:21:33 +00:00
Stig Bakken
bdeb45b335
Added PATH_SEPARATOR constant
2002-11-14 22:50:01 +00:00
John Coggeshall
253cecd43a
Added GLOB_ONLYDIR and GLOB_BRACE for compatiable systems for the glob()
...
function.
Modified the layout and some minor logic in the experimental webHarness()
test class
Added Whitespace accidently to array.c :)
2002-11-13 13:31:33 +00:00
Rasmus Lerdorf
ef9b51bcb0
readdir() was returning NULL instead of FALSE when used on an invalid
...
directory handle. If someone forgot to check (as someone here did) that
the opendir() succeeded, and then followed the documented usage by checking
readdir()!==FALSE things would go awry. The ZEND_FETCH_RESOURCE macro
explicitly does a RETURN_NULL on failure which is not what we want in this
case, so work around it. No need to change it for the OO case since the
object is not created if the opendir fails.
2002-10-07 16:46:38 +00:00
Rasmus Lerdorf
5610e348ec
Kill a few more warnings
2002-10-04 18:03:29 +00:00
Yasuo Ohgaki
ec340e039a
It must be GLOB_NOCHECK instead of GLOB_NOMATCH.
...
GLOB_NOMATCH does not make sense at all.
2002-09-28 09:14:45 +00:00
foobar
08d3ad407c
ws
2002-09-27 13:15:56 +00:00
Hartmut Holzgraefe
5797668cc3
/tmp/cvsmLUuXQ
2002-09-27 12:40:31 +00:00
Yasuo Ohgaki
7dae78b7f5
No need to define GLOB_NOMATCH.
2002-09-27 11:44:42 +00:00
Jan Lehnardt
1f227cd2e3
- GLOB_NOMATCH and GLOB_NOESCAPE are only defined in win32/glob.h
...
- fixes build on FreeBSD 4.6
2002-09-26 11:19:26 +00:00
Yasuo Ohgaki
7d87babada
Remove dup
2002-09-26 07:55:59 +00:00
Sebastian Bergmann
f5426838f9
Fix ZTS build. Fix warning.
2002-09-26 07:30:16 +00:00
Hartmut Holzgraefe
1a2df34d9d
fix windows build
2002-09-26 07:15:33 +00:00
Hartmut Holzgraefe
0d815b5713
glob should now be ZTS/open_basedir/safe_mode aware (finally)
2002-09-26 00:27:52 +00:00
foobar
a254506a3c
ws fix
2002-09-11 14:21:39 +00:00
Marcus Boerger
149ad05b4f
php_error_docref
...
#New conversion available at: http://docref.txt.marcus-boerger.de
2002-08-24 01:19:28 +00:00
Rasmus Lerdorf
b025bb1023
Missing proto
2002-08-13 05:08:47 +00:00
Rasmus Lerdorf
d820c177bf
dir() returns an instantiated object, not a class.
2002-08-13 04:24:15 +00:00
Edin Kadribasic
a55c1228ed
Fixed bug #14657 (patch by Steph Fox)
2002-07-29 13:13:50 +00:00
Derick Rethans
728f2de442
Unify error messages
2002-07-08 12:52:22 +00:00
Edin Kadribasic
544694255a
Added glob() support for windows.
2002-05-19 14:32:24 +00:00
Markus Fischer
25a616d7aa
- Fix portability issues with empty results on Linux and FreeBSD, add safe_mode
...
check and simplify code.
# Hartmut, what was the VCWD check for ?!
2002-05-18 13:31:31 +00:00
Wez Furlong
b10b24d50c
Always initialize wrappers, regardless of PG(allow_url_fopen).
...
Add is_url field to wrapper structure; the stream wrapper openers
will disallow opening is is_url && !PG(allow_url_fopen).
Add infrastructure for stat($url) and opendir($url).
Tidy up/centralize code that locates and instantiates wrappers for the
various operations.
Implement opendir for plain files.
Make the PHP opendir and dir functions use the streams implementations.
Add modelines for syntax highlighting the pear scripts in vim
2002-04-16 22:14:27 +00:00
Hartmut Holzgraefe
b00d9a5b2c
added fnmatch() and glob() functions
...
could someone please check if i got the virtual dir stuff right?
2002-03-21 19:18:13 +00:00
James E. Flemer
01505de0b1
(PHP opendir) Changed CHECKUID_ALLOW_ONLY_DIR to CHECKUID_ALLOW_ONLY_FILE
...
so that relative paths (vs absolute) work correctly.
2002-03-06 18:31:33 +00:00
James E. Flemer
787ce372b9
(PHP opendir) Added safe_mode checks on path.
...
@- Added safe_mode checks for opendir(). (jflemer)
2002-03-03 20:46:57 +00:00
Sebastian Bergmann
90613d2282
Maintain headers.
2002-02-28 08:29:35 +00:00
Thies C. Arntzen
21cc717bac
protos fixes by Wolfgang Drews
2002-01-03 06:57:22 +00:00
Zak Greant
f01745896f
chdir: corrected proto, converted to zend_parse_parameters
2001-12-30 10:13:08 +00:00