summaryrefslogtreecommitdiff
path: root/ext/standard/dir.c
Commit message (Collapse)AuthorAgeFilesLines
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* Verify if gl_pathv is not NULL, which it is, when GLOB_NOMATCH isn'tMelvyn Sopacua2002-12-231-0/+3
| | | | | | | supported and there are no matches. # BSDi/Mac OSX are affected.
* ws fixfoobar2002-11-151-2/+2
|
* Added PATH_SEPARATOR constantStig Bakken2002-11-141-4/+7
|
* Added GLOB_ONLYDIR and GLOB_BRACE for compatiable systems for the glob()John Coggeshall2002-11-131-0/+6
| | | | | | | | | | function. Modified the layout and some minor logic in the experimental webHarness() test class Added Whitespace accidently to array.c :)
* readdir() was returning NULL instead of FALSE when used on an invalidRasmus Lerdorf2002-10-071-1/+3
| | | | | | | | | | 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.
* Kill a few more warningsRasmus Lerdorf2002-10-041-0/+2
|
* It must be GLOB_NOCHECK instead of GLOB_NOMATCH.Yasuo Ohgaki2002-09-281-1/+1
| | | | | GLOB_NOMATCH does not make sense at all.
* wsfoobar2002-09-271-1/+1
|
* /tmp/cvsmLUuXQHartmut Holzgraefe2002-09-271-2/+9
|
* No need to define GLOB_NOMATCH.Yasuo Ohgaki2002-09-271-1/+0
|
* - GLOB_NOMATCH and GLOB_NOESCAPE are only defined in win32/glob.hJan Lehnardt2002-09-261-0/+2
| | | | | - fixes build on FreeBSD 4.6
* Remove dupYasuo Ohgaki2002-09-261-1/+0
|
* Fix ZTS build. Fix warning.Sebastian Bergmann2002-09-261-2/+0
|
* fix windows buildHartmut Holzgraefe2002-09-261-1/+1
|
* glob should now be ZTS/open_basedir/safe_mode aware (finally)Hartmut Holzgraefe2002-09-261-7/+40
|
* ws fixfoobar2002-09-111-5/+6
|
* php_error_docrefMarcus Boerger2002-08-241-6/+5
| | | | | #New conversion available at: http://docref.txt.marcus-boerger.de
* Missing protoRasmus Lerdorf2002-08-131-1/+1
|
* dir() returns an instantiated object, not a class.Rasmus Lerdorf2002-08-131-1/+1
|
* Fixed bug #14657 (patch by Steph Fox)Edin Kadribasic2002-07-291-1/+0
|
* Unify error messagesDerick Rethans2002-07-081-5/+5
|
* Added glob() support for windows.Edin Kadribasic2002-05-191-0/+4
|
* - Fix portability issues with empty results on Linux and FreeBSD, add safe_modeMarkus Fischer2002-05-181-14/+22
| | | | | | check and simplify code. # Hartmut, what was the VCWD check for ?!
* Always initialize wrappers, regardless of PG(allow_url_fopen).Wez Furlong2002-04-161-54/+24
| | | | | | | | | | | | 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
* added fnmatch() and glob() functionsHartmut Holzgraefe2002-03-211-0/+40
| | | | | could someone please check if i got the virtual dir stuff right?
* (PHP opendir) Changed CHECKUID_ALLOW_ONLY_DIR to CHECKUID_ALLOW_ONLY_FILEJames E. Flemer2002-03-061-1/+1
| | | | | so that relative paths (vs absolute) work correctly.
* (PHP opendir) Added safe_mode checks on path.James E. Flemer2002-03-031-0/+4
| | | | | @- Added safe_mode checks for opendir(). (jflemer)
* Maintain headers.Sebastian Bergmann2002-02-281-2/+1
|
* protos fixes by Wolfgang DrewsThies C. Arntzen2002-01-031-5/+5
|
* chdir: corrected proto, converted to zend_parse_parametersZak Greant2001-12-301-8/+7
|
* chroot: corrected prototype, converted to zend_parse_parametersZak Greant2001-12-301-8/+6
|
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* Back-substitute for Z_* macro's. If it breaks some extension (the script ↵Jeroen van Wolffelaar2001-09-251-6/+6
| | | | isn't optimal, it parses for example var->zval.value incorrect) please let me know.
* Enable chroot() only if SAPI is CGI.foobar2001-09-121-1/+1
|
* - Don't wrap lines... this is annoying while coding.Derick Rethans2001-09-091-2/+2
|
* WhitespaceZeev Suraski2001-08-111-5/+5
|
* More TSRMLS_FETCH work. Got it under 400 now.Zeev Suraski2001-07-311-1/+1
|
* More TSRMLS_FETCH annihilationZeev Suraski2001-07-311-1/+2
|
* Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on ↵Zeev Suraski2001-07-301-1/+1
| | | | the way
* - More object macrosAndi Gutmans2001-07-291-3/+3
|
* Redesigned thread safety mechanism - nua nuaZeev Suraski2001-07-281-21/+4
|
* - Get rid of ELS_*(), and use TSRMLS_*() instead.Zeev Suraski2001-07-271-1/+1
| | | | | | | - Move to the new ts_allocate_id() API This patch is *bound* to break some files, as I must have had typos somewhere. If you use any uncommon extension, please try to build it...
* o Fixed Bug #12121: chdir and safe_modeJames E. Flemer2001-07-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - [ main/safe_mode.h ] added new checkuid mode: CHECKUID_ALLOW_ONLY_FILE: skips directory check if file check fails - [ ext/standard/dir.c ] changed php_checkuid() to use CHECKUID_ALLOW_ONLY_FILE instead of CHECKUID_ALLOW_ONLY_DIR - [ main/safe_mode.c ] added code for new checkuid mode o Fixed Bug #12119: safe mode owner check can be bypassed with symlink - [ main/safe_mode.c ] use VCWD_REALPATH to resolve destination of symlink before trimming filename o New Feature: safe_mode_include_dir (php.ini directive) - Allows bypassing UID/GID checks when including files from the directory in safe_mode_include_dir and its subdirectories. (safe_mode must be on, directory must also be in include_path or full path must be used when including) o Fixed Feature: safe_mode_gid (php.ini directive) - Correctly check (and report) UID/GID bits on directories o Changed include() fall back to scripts cwd implementation - CWD added to the (local) search path in php_fopen_with_path() instead of seperate case. [ main/fopen_wrappers.c ]
* add PLS_FETCH();Thies C. Arntzen2001-06-201-0/+1
|
* Fix for #11570Rasmus Lerdorf2001-06-201-0/+3
|
* Fix folding and clean up some extensionsRasmus Lerdorf2001-06-061-1/+2
|
* vim-6 does folding - clean up a bunch of missing folding tags plusRasmus Lerdorf2001-06-051-0/+1
| | | | | some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
* - Change macros from V_ to VCWD_ because of AIX name clashAndi Gutmans2001-04-301-4/+4
|
* - Remove leak from opendir() under Windows. Maybe readdir.c should beAndi Gutmans2001-04-291-0/+3
| | | | | | | | | changed to use emalloc() PR: Submitted by: Reviewed by: Obtained from: