Felipe Pena
cd5d85856c
- MFH: Fixed macro redefinition warning
2008-11-13 01:35:21 +00:00
Pierre Joye
5ec35396e0
- MFH: #45985 , touch on opened file raises a warning
2008-09-04 08:05:27 +00:00
Dmitry Stogov
5293e7981e
Fixed support for short windows file names
2008-08-19 15:00:20 +00:00
Dmitry Stogov
5ade84afe4
Fixed bug #45835 (include and symlinks)
2008-08-18 10:28:17 +00:00
Dmitry Stogov
4e1e576053
Fixed arguments order
2008-08-18 09:31:34 +00:00
Dmitry Stogov
4ccb9037cc
- [DOC] make stat, touch, filemtime, filemsize and related functions more portable (almost 100% equivalent to linux now)
...
- [DOC] add support for touch($dir)
- fix windows server 2008/vista support (#45447 ) (Pierre)
2008-08-15 15:00:11 +00:00
Dmitry Stogov
b76b5a6f17
Fixed realpath cache bug
2008-08-15 13:31:58 +00:00
Dmitry Stogov
3fadad3160
- Added system independent realpath() implementation which caches intermediate directories in realpath-cache
...
- Fixed bug #45044 (relative paths not resolved correctly)
- Fixed bug #43817 (opendir() fails on Windows directories with parent directory unaccessible).
[DOC] The semantic of realpath() on BSD and Windows is changed. Now it should work exactly in the same way as on Linux (POSIX.1-2001)
2008-08-12 08:01:24 +00:00
Dmitry Stogov
50983e372c
proper fix
2008-05-20 07:41:35 +00:00
Dmitry Stogov
a125554657
Fixed win32 related realpath cache bug
2008-05-19 10:48:57 +00:00
Dmitry Stogov
1303c45e02
Fixed bug #44805 (rename() function is not portable to Windows). (Pierre)
2008-04-24 07:45:01 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Dmitry Stogov
648fbe9d58
Fixed bug #43128 (Very long class name causes segfault)
2007-11-22 13:27:13 +00:00
Dmitry Stogov
947e73b385
Fixed bug #43248 (backward compatibility break in realpath())
2007-11-13 09:47:06 +00:00
Dmitry Stogov
8e0f5bbfa2
Fixed realpath cache for existent file with CWD_FILEPATH flag on win32
2007-10-23 05:57:25 +00:00
Antony Dovgal
38b7d577a3
MFH: fix ws/cs & folding
2007-08-10 09:09:46 +00:00
Dmitry Stogov
db97db9430
Fixed bug #42027 is_file() / is_dir() matches file/dirnames with wildcard char or trailing slash
2007-07-24 09:07:33 +00:00
Dmitry Stogov
4ddde21059
Fixed rename() in ZTS to allow renaming of symbolic links;
...
Consistent handling of trailing slash
2007-07-23 08:57:04 +00:00
Dmitry Stogov
ca854215db
Fixed symlink("", "somthing") and link("", "somthing") in ZTS mode
2007-07-10 13:21:11 +00:00
Dmitry Stogov
e99013d039
Store existent file in realpath cache
2007-07-03 14:48:01 +00:00
Dmitry Stogov
738ff1277a
Fixed yet another realpath cache bug and wrong tests
2007-06-18 09:50:40 +00:00
Antony Dovgal
794ceb7bad
MFH: fix lstat() function resolving symlinks
2007-05-30 10:50:47 +00:00
Rasmus Lerdorf
227fd7aa1f
Remove simple optimization here for now until we clean up this SAPI/TSRM
...
mess.
2007-05-25 22:53:34 +00:00
Rasmus Lerdorf
7e5f0a8380
Get rid of a stray time() syscall in tsrm and clean up lcg rinit
2007-05-18 11:36:55 +00:00
Dmitry Stogov
9f2022743b
Fixed bug #41063 (chdir doesn't like root paths).
2007-04-12 15:28:58 +00:00
Antony Dovgal
eb25e82249
MFH: fix #39351 (relative include fails on Solaris)
2007-04-03 20:20:56 +00:00
Dmitry Stogov
d4ccfade57
Fixed bug #40560 (DIR functions do not work on root UNC path)
2007-02-21 13:09:03 +00:00
Dmitry Stogov
f49d044cee
On win32 directories in the middle of the patch may be unreadable
2007-02-19 14:58:07 +00:00
Dmitry Stogov
cb443c6e5a
Fixed bug #40231 (file_exists incorrectly reports false)
2007-01-26 15:15:16 +00:00
Dmitry Stogov
dfa95b718f
Fixed wrong realpath() result for unexistent files on win32
2007-01-23 17:03:48 +00:00
Dmitry Stogov
933c26de41
Fixed bug #39367 (clearstatcache() doesn't clear realpath cache)
...
Fixed bug #40092 (chroot() doesn't clear realpath cache)
2007-01-22 09:31:46 +00:00
Ilia Alshanetsky
a719e16f7c
CS
2007-01-20 16:22:51 +00:00
Antony Dovgal
d291b4351e
MFH
2007-01-19 21:00:35 +00:00
Antony Dovgal
5b4043554a
MFH: free temp cwd_state struct on error
2007-01-16 14:02:19 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Dmitry Stogov
91dc80ba9a
Removed dependency from SHELL32.DLL
2006-12-21 09:01:10 +00:00
Dmitry Stogov
682bbf19ef
Use symbolic names
2006-11-13 15:13:20 +00:00
Dmitry Stogov
3011278aab
Fixed wrong realpath() result in case of unexistent path
2006-11-10 17:23:58 +00:00
Dmitry Stogov
c06626d8c6
Fixed wrong realpath() result in case of unexistent path
2006-11-10 16:57:17 +00:00
Dmitry Stogov
ce958eded5
stat() is reimplemented using using GetFileAttributesEx().
...
The new implementation is faster then implementation in MS VC CRT, but it doesn't support Windows 95.
2006-11-10 15:04:07 +00:00
Dmitry Stogov
f05ed6390c
VCWD_REALPATH() is improved to use realpath cache without VIRTUAL_DIR
2006-11-10 12:59:27 +00:00
Antony Dovgal
58b858287b
MFH: fix #39060 (virtual_file_ex() is broken on *BSD)
2006-10-06 14:03:19 +00:00
Dmitry Stogov
cb1f58e39d
Fixed bug #38989 (Absolute path with slash at beginning doesn't work on win)
2006-10-05 08:03:11 +00:00
Antony Dovgal
bb5986b8a3
MFH
2006-10-04 13:24:19 +00:00
Ilia Alshanetsky
9e62f8b687
Added handling for virtual_file_ex() failures.
...
# Patch by Nuno
2006-09-28 15:48:35 +00:00
Dmitry Stogov
811634bd8a
Fixed bug #38579 (include_once() may include the same file twice)
2006-09-20 07:35:59 +00:00
Antony Dovgal
3eea546142
MFH
2006-08-05 13:17:50 +00:00
Antony Dovgal
8e4334159c
revert previous patch
2006-08-04 20:55:00 +00:00
Antony Dovgal
5cff1c6e7e
MFH: fix #38276 (file_exists() works incorrectly with long filenames on Windows)
2006-08-03 14:17:58 +00:00
Derick Rethans
f87e7b8bab
- Added lchown() and lchgrp() to change user/group ownership of symlinks.
2006-03-05 18:57:54 +00:00
Antony Dovgal
1f8b320679
MFH: move function definition from .h to .c, where it should be
2006-02-08 20:50:03 +00:00
Antony Dovgal
a3b941642c
init variables
2006-02-06 20:37:11 +00:00
Dmitry Stogov
4b1791a767
Fixed bug #36016 (realpath cache memleaks)
2006-01-16 09:12:22 +00:00
Dmitry Stogov
71d4d4a91f
Fixed bug #36016 (realpath cache memleaks)
2006-01-16 09:09:37 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
foobar
d411d72053
MFH:fix mkdir() function properly (patch by nlopess)
2005-12-23 18:57:39 +00:00
Edin Kadribasic
a151e632d5
MFH: Back out a portion of the previous patch which broke win32 file functions
2005-12-22 21:33:38 +00:00
Ilia Alshanetsky
5df2f5df42
Fixed bug #31347 (is_dir and is_file (incorrectly) return true for any string
...
greater then 255 characters).
2005-12-20 14:24:14 +00:00
foobar
b711486feb
Bump up year
2005-08-03 13:28:14 +00:00
Anantha Kesari H Y
958803655e
gwtcwd of NetWare LibC gives a cwd with a volume information.
...
So using getcwdpath which gives with volume information.
getcwdpath gives with directory seperator as \ which is against our DEFAULT_SLASH of /. So finding and replacing \ with /
-- Kamesh
2005-07-07 07:10:50 +00:00
Rasmus Lerdorf
86994c3357
Add a comment to remind me to have a look at this at some point.
2005-02-27 18:45:07 +00:00
Anantha Kesari H Y
3b4d482055
NetWare LibC has a lstat implementation
2005-02-21 09:56:28 +00:00
Stefan Esser
f8787a67ed
finally use what we calculated
2005-01-15 18:19:49 +00:00
Dmitry Stogov
0854cad7a2
Unnecesary check was removed
2005-01-08 13:53:45 +00:00
Stefan Esser
1a319ae1ac
Fixed: virtual_popen in ZTS mode
2004-12-02 01:04:23 +00:00
Stefan Esser
b08147d46a
Partly reverted because of problems with some realpath() implementations
2004-12-02 00:44:07 +00:00
Stefan Esser
6076a4a66c
Fixed behaviour of TSRM in case of realpath() failure
2004-12-01 22:56:05 +00:00
Anantha Kesari H Y
a980f7babe
removed redundant NEW_LIBC checks and added the code to recognize the file naming convention in NetWare(supports Windows based drive names like sys: data: and unix like / (sys: being root)
2004-10-08 08:59:11 +00:00
Ilia Alshanetsky
1594170f85
Fixed compiler warning.
2004-10-06 23:56:29 +00:00
Andi Gutmans
216853c0db
- Apply realpath() cache patch. We don't use it if we're in safe_mode and
...
- friends (which are quite slow anyway).
- If it proves to be stable I'll remove the #ifdef's in a few weeks.
2004-10-05 00:42:25 +00:00
Ilia Alshanetsky
f677b6032a
Fixed define.
2004-03-09 14:56:34 +00:00
Ilia Alshanetsky
d196309341
Fixed bug #27338 (memory leak inside tsrm_virtual_cwd.c on win32).
2004-03-09 14:50:11 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Wez Furlong
f936f2983d
It seems that making the NewAPIs.h header globally visible causes
...
problems when compiling the com_dotnet extension, so I'm moving
it to be visible only to the VCWD code.
Thanks Frank :-)
2003-12-22 22:30:50 +00:00
Wez Furlong
c976456071
fix uninitialized variable
2003-12-05 13:39:24 +00:00
Sebastian Bergmann
ef9dfc00ff
Fix for the problem I posted to internals@.
2003-12-05 11:32:24 +00:00
Wez Furlong
9a1ddeae65
Fix Andi's GetLongPathName code so that virtual_file_ex doesn't
...
fail if the file does not exist.
2003-12-04 17:02:09 +00:00
Andi Gutmans
5620f21dd5
- Uncomment my code which improves Windows behavior of TSRM file paths.
...
- This will now not work on Windows 95 anymore.
2003-12-02 21:12:17 +00:00
Andi Gutmans
db38966aba
- Don't fix include_once() case sensitivity problem for beta 2.
...
- I suggest discussing to stop supporting win95 and NT 4 in our binary
- distributions and change the code to #ifdef.
2003-10-30 09:58:17 +00:00
Andi Gutmans
78cb1bfe67
- This should work.
2003-10-29 21:33:05 +00:00
Andi Gutmans
1428850762
- Allow for case-insensitivity of include_once()/require_once() on
...
- Windows
2003-10-29 21:14:17 +00:00
Sebastian Bergmann
60ffd0ea5d
Restore HEAD of TSRM to what it was two days ago.
2003-06-25 05:05:06 +00:00
James Cox
76f85107e2
bring head into sync with the php4 branch
2003-06-23 01:27:13 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Sascha Schumann
4d361edd91
cleanup macros
2003-06-04 00:01:21 +00:00
Wez Furlong
cfd0466389
Fix for Bug #21310 , based on a patch by jflemer@php.net.
2003-03-17 13:40:45 +00:00
Shane Caraveo
5048f8c60e
is_executable() now available on win32
...
stats can now get information provided by access()
2003-02-09 03:49:43 +00:00
Zeev Suraski
e8de102cd6
Fix leaks
2003-01-07 12:11:40 +00:00
Anantha Kesari H Y
455257974b
NetWare related changes/modifications.
2003-01-02 14:29:00 +00:00
Sebastian Bergmann
2c5d4b8c23
Bump year.
2002-12-31 15:59:15 +00:00
Andi Gutmans
a58e6cc8ad
- Add comment in macro and remove some now unneeded code
2002-12-20 08:42:50 +00:00
Ilia Alshanetsky
78e2e69b23
Instead of checking whether realpath exists based on OS. Use the
...
HAVE_REALPATH define, which is set if realpath() is avaliable. This patch
also resolves bug #18868 .
2002-11-06 18:07:23 +00:00
Ilia Alshanetsky
cfe0c82034
Added 4th argument to virtual_file_ex() that specifies whether or not
...
realpath() should be used during path resolving. In a number of functions
we do not want to use realpath(), since realpath() will resolve symlinks.
2002-11-05 14:50:17 +00:00
Ilia Alshanetsky
ecb5c7e08e
Revert virtual_link() patch.
2002-11-04 23:24:15 +00:00
Andi Gutmans
7dd124803c
- Clean up mess made by netware guys. There's no reason not to abstract
...
- the macro a tiny bit more allowing the code to look cleaner. The more
- #ifdef's code has the more unreadable it becomes.
2002-11-04 20:45:28 +00:00
Ilia Alshanetsky
9087728798
Fix bug #20235 .
2002-11-04 05:19:05 +00:00
Shane Caraveo
1f0523c85a
windows is smart enough to provide a way to set cwd for new processes.
2002-10-29 07:32:52 +00:00
Ilia Alshanetsky
e94b9ea9ee
Fixed a bug noticed by Jon Parise.
2002-10-22 18:57:59 +00:00
Ilia Alshanetsky
1de9cddb3f
Fixed compile warnings.
2002-10-22 18:39:33 +00:00
Ilia Alshanetsky
d8480c8088
Fixed symlink/link functions on ZTS builds.
...
Made URL detection in symlink code use php_stream_locate_url_wrapper().
2002-10-21 23:35:29 +00:00