Xinchen Hui
c081ce628f
Bump year
2014-01-03 11:08:10 +08:00
Xinchen Hui
47c9027772
Bump year
2014-01-03 11:06:16 +08:00
Xinchen Hui
c0d060f5c0
Bump year
2014-01-03 11:04:26 +08:00
Anatol Belski
e30b2aae5a
initial move on renaming files and fixing includes
2013-10-17 09:43:52 +02:00
Andrey Hristov
92d27ccb05
Constify streams API and a few other calls down the rabbit hole.
...
(`char *` to `const char *` for parameters and few return values)
In a few places int len moved to size_t len.
2013-07-30 12:49:36 +02:00
Anatol Belski
25f924abf6
fixed possible null deref
2013-07-22 14:50:18 +02:00
Xinchen Hui
0a7395e009
Happy New Year
2013-01-01 16:28:54 +08:00
Xinchen Hui
153bfada90
Merge branch 'PHP-5.3' into PHP-5.4
2012-11-02 18:56:17 +08:00
Xinchen Hui
3fe3029ecb
Fixed bug #62444 (Handle leak in is_readable on windows).
2012-11-02 18:53:06 +08:00
Anatoliy Belsky
24e4af0b8f
Merge branch 'PHP-5.3' into PHP-5.4
...
* PHP-5.3:
Fixed bug #63241 PHP fails to open Windows deduplicated files.
2012-10-31 22:55:32 +01:00
Anatoliy Belsky
a2e4404bc8
Fixed bug #63241 PHP fails to open Windows deduplicated files.
...
Fix by (daniel dot stelter-gliese at innogames dot de).
No test is supplied because the issue addresses
the new feature of the Windows Server 2012 and
would need a very specific filesystem setup.
2012-10-31 22:41:03 +01:00
Dmitry Stogov
ce9f1a4313
Fixed bug #51860 (Include fails with toplevel symlink to /)
2012-01-30 10:08:11 +00:00
Dmitry Stogov
2c90b8a06b
Fixed bug #51860 (Include fails with toplevel symlink to /)
2012-01-30 10:08:11 +00:00
Felipe Pena
e4ca0ed09f
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Pierre Joye
0e3ec21e6f
- Fix #55295 , check if malloc failed
2011-07-27 14:23:06 +00:00
Pierre Joye
ef7229ed17
- Fix #55295 , check if malloc failed
2011-07-27 14:23:06 +00:00
Pierre Joye
7e0b627b02
- WS
2011-07-27 11:58:39 +00:00
Pierre Joye
bbd6fe7011
- do not resolve the link if all we want is to open that file
2011-07-27 11:57:44 +00:00
Ilia Alshanetsky
34d93f0c06
Zend Signal Handling
2011-06-22 14:23:21 +00:00
Rasmus Lerdorf
00842d6996
Fix CS
2011-05-19 23:18:55 +00:00
Rasmus Lerdorf
4ad9f1970c
Fix CS
2011-05-19 23:18:55 +00:00
Rasmus Lerdorf
e40c470c9d
Fix bug 54866
2011-05-19 23:09:58 +00:00
Rasmus Lerdorf
01a6840bbd
Fix bug 54866
2011-05-19 23:09:58 +00:00
Johannes Schlüter
db6a29e533
- Fix possible memory leak
...
# Found by parfait - http://labs.oracle.com/projects/parfait/
2011-05-16 19:46:32 +00:00
Johannes Schlüter
9ea582a76c
- Fix possible memory leak
...
# Found by parfait - http://labs.oracle.com/projects/parfait/
2011-05-16 19:46:32 +00:00
Rasmus Lerdorf
353077d234
Get rid of autoconf warnings
2011-05-16 00:14:47 +00:00
Pierre Joye
366e7170fa
- WS
2011-01-10 00:59:19 +00:00
Pierre Joye
ab4ce5516d
- some more possible NULL deref
2011-01-10 00:43:08 +00:00
Pierre Joye
9a0771d846
- some more possible NULL deref
2011-01-10 00:43:08 +00:00
Pierre Joye
8640b61c68
- fix possible NULL deref
2011-01-10 00:30:07 +00:00
Pierre Joye
26bb38e68b
- fix possible NULL deref
2011-01-10 00:30:07 +00:00
Felipe Pena
927bf09c29
- Year++
2011-01-01 02:19:59 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Pierre Joye
8efec79ffe
- expose php_sys_(l)stat, doing will prevent me to have to provide pecl's builds for <5.3.3 and another set for 5.3.4+. Trunk remains the same, A(B/P)I can be broken there
2010-11-04 01:16:20 +00:00
Pierre Joye
8c0682f89f
- Fix #52908 , fix declaration
2010-10-04 10:35:32 +00:00
Pierre Joye
f1d2e1453c
- Fix #52908 , fix declaration
2010-09-22 21:28:37 +00:00
Pierre Joye
c4334c7c38
- restore VOLUME_NAME_NT and VOLUME_NAME_DOS definition, thx Andrey for the headup
2010-09-17 11:34:49 +00:00
Pierre Joye
88117e6128
- restore VOLUME_NAME_NT and VOLUME_NAME_DOS definition, thx Andrey for the headup
2010-09-17 11:34:49 +00:00
Pierre Joye
b154864cc9
- drop tsrmls_fetch in popen_ex
2010-09-17 10:00:01 +00:00
Pierre Joye
83527d16a3
- drop tsrmls_fetch in tsrm_win32_access
2010-09-17 09:27:19 +00:00
Pierre Joye
65942d343f
- sanity check for the path length and don't treat UNC as local path (no functional change, only less ops)
2010-09-13 10:58:18 +00:00
Pierre Joye
2beb341374
- sanity check for the path length and don't treat UNC as local path (no functional change, only less ops)
2010-09-13 10:58:18 +00:00
Pierre Joye
8a18e0b716
- use php_sys_lstat
2010-09-13 10:27:55 +00:00
Pierre Joye
ffd60af473
- use php_sys_lstat
2010-09-13 10:27:55 +00:00
Pierre Joye
d5ca12b03e
- use php_sys_readlink
2010-09-13 09:30:07 +00:00
Pierre Joye
ba5b4afc32
- WS
2010-09-13 09:08:42 +00:00
Pierre Joye
3a2f5c2219
- WS
2010-09-13 09:08:42 +00:00
Pierre Joye
cd727b4e9a
- remove 'UNC' from the target
2010-09-10 19:21:02 +00:00
Pierre Joye
e0591d0ea1
- remove 'UNC' from the target
2010-09-10 19:21:02 +00:00
Pierre Joye
ae50441266
- WS
2010-09-10 14:02:19 +00:00
Pierre Joye
391ff7682c
- add php_sys_readlink
2010-09-10 14:01:44 +00:00
Pierre Joye
bf0a5ea745
- add php_sys_readlink
2010-09-10 14:01:44 +00:00
Pierre Joye
6396a3272c
- add lstat support for Windows
2010-09-01 09:49:53 +00:00
Pierre Joye
dec8593fac
- add lstat support for Windows
2010-09-01 09:49:53 +00:00
Pierre Joye
100228aae1
- use TSRMLS_CC instead of TSRMLS_FETCH in virtual_file_ex
2010-08-30 09:38:47 +00:00
Pierre Joye
3c3ddb39b4
- WS
2010-08-27 10:09:52 +00:00
Pierre Joye
cde759600b
- WS
2010-08-27 10:09:52 +00:00
Pierre Joye
0f34683304
- WS
2010-08-26 14:23:48 +00:00
Pierre Joye
a5e51efff8
- Symlink resolution fails when target is a DFS path
2010-08-26 14:23:17 +00:00
Pierre Joye
b777280933
- Symlink resolution fails when target is a DFS path
2010-08-26 14:23:17 +00:00
Antony Dovgal
9badd4f0fb
fix bug #50101 (name clash between global and local variable)
2010-06-08 13:27:30 +00:00
Antony Dovgal
dd73c48d57
fix bug #50101 (name clash between global and local variable)
2010-06-08 13:27:30 +00:00
Pierre Joye
6d675f3f4b
- we don't need that anymore
2010-04-28 22:26:08 +00:00
Pierre Joye
f4735e72e4
- we don't need that anymore
2010-04-28 22:25:31 +00:00
Ilia Alshanetsky
3ea4abe92c
update copyright
2010-02-16 13:01:50 +00:00
Pierre Joye
3a239b15e9
- silent warning
2010-02-04 15:34:19 +00:00
Pierre Joye
3247c2595d
- vc6 does not expose it
2010-02-03 16:11:56 +00:00
Pierre Joye
6d913a0272
- oops, wrong one applied, fix build.
2010-02-01 15:31:58 +00:00
Pierre Joye
f25710db92
- set errno on failure so that the caller can still rely on strerror (reporting wrong error w/o this change)
2010-02-01 15:22:31 +00:00
Pierre Joye
565af741e4
- fix leak
2010-01-31 15:22:17 +00:00
Pierre Joye
1bbc4f1721
- fix write access check when write mode only is requested (not RW)
2010-01-30 20:55:01 +00:00
Pierre Joye
5d360fa1ce
- fix leak
2010-01-27 16:52:36 +00:00
Pierre Joye
e130a31441
- don't go through the reparse code when we have a share or DFS path (should fix #50542 )
2010-01-27 16:46:43 +00:00
Pierre Joye
84b59b8582
- little comment to avoid undesired changes in this section
2010-01-27 16:44:48 +00:00
Pierre Joye
b37f2257a4
- fix leak, win only
2010-01-27 16:43:16 +00:00
Pierre Joye
79aa615b55
- fix leak when the SID is already used and duplicated
2010-01-27 14:41:06 +00:00
Pierre Joye
3111aa2638
- ws
2010-01-25 09:01:22 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Felipe Pena
da22aa9aad
- Fixed ZTS build
2009-12-08 01:51:34 +00:00
Stanislav Malyshev
7beb1af8de
add realpath cache inspect functions
2009-12-08 01:35:08 +00:00
Pierre Joye
26e3082abc
- fix lenght for alloc and cpy (Kanwal)
2009-11-03 10:48:12 +00:00
Pierre Joye
5e0f3731ac
- MFH: fix realloc usage
2009-10-19 23:41:14 +00:00
Pierre Joye
0304ec7900
- Fix ACL support and add support for ACL for TS SAPI. Be sure to get the impersonated token when the impersonation has been done. Add the SID as part of the key for the cache (so each SID gets its cache and not previous requests run under other SID)
2009-10-19 23:32:07 +00:00
Pierre Joye
6711276b3c
- fix ACL cache for read check
2009-09-19 20:54:34 +00:00
Pierre Joye
ada5eb95ad
- Fix #48746 , improve fix to support all possible cases (see latest comment in the report)
2009-09-14 18:46:56 +00:00
Pierre Joye
542c087a86
- be sure that we use the user token by default (Christian Wenz)
2009-09-04 06:59:08 +00:00
Pierre Joye
511c923785
- #27051 , improve fix on xp/2k3
2009-09-03 19:16:50 +00:00
Pierre Joye
a8c40d5b3a
- #48746 , len includes null already
2009-09-02 22:59:58 +00:00
Pierre Joye
da9aee9703
- #27051 , we need the thread token here, not the process
2009-09-02 01:59:17 +00:00
Pierre Joye
ddab8be51e
- #27051 , create process as impersonated user
2009-09-01 22:51:31 +00:00
Pierre Joye
b6882eddf6
- #48746 , revert previous about volume. Fix volume support to allow all mounted points (with or without drives)
2009-09-01 17:50:59 +00:00
Pierre Joye
ceb607af13
- Fixed leak on error in popen/exec (and related functions)
2009-08-30 17:13:45 +00:00
Pierre Joye
45c58fc449
- Fix #48746 , mounted volume support & resolution
2009-08-29 12:21:47 +00:00
Pierre Joye
17a4191575
- Fix for #48746 , fix mounted volume and junctions when used from vista or later, they are actually prepended with \??\
2009-08-27 09:39:01 +00:00
Pierre Joye
0c366503a6
- fix #48746 , regression with file operaiton on path with junctions
2009-08-26 20:44:05 +00:00
Pierre Joye
bae3df7505
- fix #44683 , popen crashes when an invalid mode is passed (works on 2k8/vista/win7)
2009-08-26 19:57:01 +00:00
Pierre Joye
eeb9429de5
- be sure that the directory flag is set when we save a path in the cache
2009-08-25 09:32:31 +00:00
Pierre Joye
056f0aea30
- fix #49047 , touch may fail on directory
2009-08-25 09:16:53 +00:00
Pierre Joye
ebd24fc10f
- sigh. that too (separate fix).
2009-08-24 20:33:36 +00:00
Pierre Joye
063196c8aa
- that part was for a separate fix
2009-08-24 20:32:11 +00:00
Pierre Joye
55d26cab56
- split atime and mtime
2009-08-24 20:27:52 +00:00
Pierre Joye
05f86b6edb
- revert fix for #43327 , it breaks system&co functions
2009-08-20 09:03:19 +00:00
Pierre Joye
b64e5e6bd0
- fixed #43327 , wrong return value from mail(), if sendmail_path is wrong
2009-08-19 18:43:46 +00:00
Felipe Pena
44bf860516
- MFH: Fixed compiler warning
2009-07-07 00:02:34 +00:00
Pierre Joye
fa38267833
- MFH: #48771 , rename() between drives error: No error
2009-07-06 08:56:23 +00:00
Pierre Joye
5f2df5d064
- WS
2009-06-26 07:39:42 +00:00
Pierre Joye
2e08b57ee6
- fix build when IO_REPARSE_TAG_SYMLINK is not defined (works with 2k+)
2009-06-16 21:54:12 +00:00
Pierre Joye
a5302d870d
- #47767 , include_once does not resolve windows symlinks or junctions
2009-06-16 00:13:56 +00:00
Pierre Joye
18d5751a9e
- Windows ACL cache support, update existing tests and add a new one
2009-06-16 00:07:05 +00:00
Pierre Joye
60223d6a6d
- #48535 , file_exists returns false when impersonate is used
2009-06-15 15:01:01 +00:00
Pierre Joye
64934cf360
- missing include
2009-06-09 09:25:18 +00:00
Pierre Joye
49666eece6
#41874 , separate STDOUT and STDERR in exec functions
2009-06-09 00:25:37 +00:00
Hannes Magnusson
45b2586666
Fix build
2009-05-19 10:00:12 +00:00
Pierre Joye
aedaf1aea9
- close manually the impersonation token
2009-05-18 20:56:46 +00:00
Pierre Joye
10ace3fe97
- #44859 , fixed support for windows ACL, drop win9x code
2009-05-17 19:44:27 +00:00
Pierre Joye
59a6d8d5a2
- WS
2009-05-15 17:48:34 +00:00
Pierre Joye
99152e8f58
- nuke unused var
2009-04-04 11:37:48 +00:00
Dmitry Stogov
a928b88da9
Fixed realpath() behavior to support "c:dir" as "c:\dir", and "\dir" on UNC CWD
2009-01-21 19:07:40 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
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
Stanislav Malyshev
a041ddc9d9
fix warnings
2008-07-30 17:45:18 +00:00
Scott MacVicar
19322fc782
MFH: Fix bug when command is quoted and parameters are quoted during call to exec, the result is that cmd.exe /c strips the first and last quote.
2008-05-29 11:31:02 +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
Derick Rethans
d725401987
- Fix for bug #44870 : rename() on directory deletes same named file. (Patch by
...
Pierre)
2008-05-02 14:07:26 +00:00
Dmitry Stogov
1303c45e02
Fixed bug #44805 (rename() function is not portable to Windows). (Pierre)
2008-04-24 07:45:01 +00:00
Antony Dovgal
a57ce92705
MFH: fix TSRM mutex return value inconsitencies (patch by Scott MacVicar)
2008-02-07 09:06:45 +00:00
Dmitry Stogov
240fa244c3
Improved PHP binary size and startup speed with GCC4 visibility control (Nuno)
2008-01-30 09:41:12 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Dmitry Stogov
4ab8d46ddd
Fixed definitions
2007-11-23 13:38:32 +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
c60eee7046
typo
2007-04-17 06:26:32 +00:00
Dmitry Stogov
e1814f0dbe
WIN64 support
2007-04-16 08:09:56 +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
Stanislav Malyshev
8f0d69159e
fix for #33664 Console window appears when using exec()
2007-04-02 20:44:30 +00:00
Antony Dovgal
17d89125b2
MFH: fix shmop_open() with IPC_CREAT|IPC_EXCL flags on win32
2007-03-20 17:57:59 +00:00
Stanislav Malyshev
b415e3da5a
Unfortunately, VC does not have snprintf, and sprintf_s supported only in vc2005
...
Fortunately, we don't need it here too badly.
2007-02-24 02:50:58 +00:00
Marcus Boerger
50ea26760d
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
2007-02-24 02:17:47 +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
Antony Dovgal
286dee8100
MFH
2007-02-15 19:11:48 +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
af74c7c9d2
Added comments
2006-11-14 09:15:55 +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
Dmitry Stogov
41c81f20e1
opendir() is reimplemented using GetFistFile/GetNextFile those are faster then _findfirst/_findnext
2006-11-10 11:20:48 +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
Dmitry Stogov
75876d57be
Fixed VIRTUAL_DIR inconsistency
2006-09-04 08:18:15 +00:00
Antony Dovgal
05a1ac2a35
MFH: fix separate TSRM build
2006-08-22 13:01:44 +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
foobar
22a8c3113b
MFH: - Fixed bug #36909 (ld: Undefined symbols: _lchown)
2006-04-10 11:56:18 +00:00
Dmitry Stogov
98bacb0e21
Fixed bug #35988 (Unknown persistent list entry type in module shutdown)
2006-03-14 15:16:07 +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
Andi Gutmans
30cb5e36b8
- Update to 2006
2006-01-04 23:55:42 +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
Sara Golemon
5fc9d15692
MFH: allocate_new_resource() handles the malloc() for us. Don't leak by mallocing twice.
2005-08-29 22:05:25 +00:00
foobar
894237d531
Fix compile failure with GCC 4.0.x
2005-08-05 22:28:23 +00:00
foobar
b711486feb
Bump up year
2005-08-03 13:28:14 +00:00
Anantha Kesari H Y
032d0962c2
Netware pthreads support is good enough. So removing all these fixes of old times.
...
-- Kamesh
2005-07-16 11:38:40 +00:00
Anantha Kesari H Y
8b3becf06c
Reverting the DEFAULT_SLASH to / as it breaks the FreeBSD derived function of NetWare LibC like glob.
...
-- Kamesh
2005-07-07 07:12:44 +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
Anantha Kesari H Y
e61dfb0213
COPY_WHEN_ABSOLUTE is not needed for NetWare.
...
-- Kamesh
2005-07-07 06:52:44 +00:00
foobar
a20383ba06
- Unify the "configure --help" texts
2005-05-29 23:17:16 +00:00
Sara Golemon
c281eb38ae
Unterminated paren group in BETHREADS definition of tsrm_tls_set() macro
2005-05-16 22:46:05 +00:00
Wez Furlong
4625889764
consolidate the various tls get/set calls for the different platforms into
...
a single macro, at Andi's request.
2005-04-28 02:55:14 +00:00
Wez Furlong
6d978a62f1
Add three new TSRM api functions:
...
TSRM_API void *tsrm_new_interpreter_context(void);
TSRM_API void *tsrm_set_interpreter_context(void *new_ctx);
TSRM_API void tsrm_free_interpreter_context(void *context);
These can be used, with a suitable SAPI, to host multiple interpreters on
the same thread.
2005-04-27 22:19:54 +00:00
Anantha Kesari H Y
5d4230a7e7
check should be on host_alias rather than on target_alias, but somehow works on configure generated using autoconf 2.57.
2005-04-27 13:22:18 +00:00
Zeev Suraski
18f4a3f9ff
Merge
2005-03-20 09:03:40 +00:00
foobar
2d521a73c8
Revert bad fix
2005-03-17 08:15:23 +00:00
Rasmus Lerdorf
effa111c5e
Fix Jani breakage
2005-03-16 22:00:07 +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
foobar
9a3c0eca4b
- cross-compile fix
2005-02-24 19:05:01 +00:00
Anantha Kesari H Y
295f8d918f
NetWare can use Autoconf based build system.
2005-02-22 06:05:20 +00:00
Anantha Kesari H Y
91b48c2a89
NetWare LibC has lstat implementation
2005-02-21 10:13:07 +00:00
Anantha Kesari H Y
787cf59dee
NetWare can make use of autogenerated config header file
2005-02-21 10:07:28 +00:00
Anantha Kesari H Y
e32ae40fbf
NetWare has pthreads implementation
2005-02-21 10:05:07 +00:00
Anantha Kesari H Y
ba980b12ad
NetWare can use the tsrm_config.h
2005-02-21 10:01:34 +00:00
Anantha Kesari H Y
3b4d482055
NetWare LibC has a lstat implementation
2005-02-21 09:56:28 +00:00
Anantha Kesari H Y
bcbca0e397
NetWare has a compliant pthread implementation
2005-02-01 13:04:26 +00:00
Stefan Esser
f8787a67ed
finally use what we calculated
2005-01-15 18:19:49 +00:00
foobar
a139dbf9cc
- Fix outside-source-tree builds. Always include generated header files
...
with #include <some_header.h> to make sure the correct file is used.
2005-01-09 21:05:06 +00:00
Dmitry Stogov
0854cad7a2
Unnecesary check was removed
2005-01-08 13:53:45 +00:00
foobar
69eec3f3b9
MFB_4_3: Quote macro names in AC_DEFUN()
2004-12-30 07:08:39 +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
b140c80396
removed redundant CLIB_STAT_PATCH checks. defined the IS_ABSOLUTE_PATH macros to suit the NetWare filesystem convention
2004-10-08 09:48:20 +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
Marcus Boerger
32bdaae133
Apply the fix
2004-07-15 22:17:55 +00:00
Andi Gutmans
c495c54069
- Fix typo although it isn't being built
2004-05-23 16:05:09 +00:00
Marcus Boerger
fbb28b36b7
- Once ts_free_id() will be used, we cannot call ctors for deleted ids
...
when creating new threads.
2004-05-13 06:53:21 +00:00
Marcus Boerger
88a02ba159
- More work on ts_free_id() but still keep it out
2004-05-12 22:28:28 +00:00
Marcus Boerger
c0be906309
ifdef out the ts_free_id until php 5.1 and until it is complete
2004-05-12 22:17:01 +00:00
Marcus Boerger
8e52e04c30
- Implement ts_free_id()
2004-05-12 10:30:46 +00:00
Stanislav Malyshev
07266a10ab
Disabled calling dtors on tsrm_shutdown - calling dtors in tsrm_shutdown makes
...
modules registering TSRM ids to crash, if they have dtors, since the module
is unloaded before tsrm_shutdown is called. Can be re-enabled after
tsrm_free_id is implemented.
2004-03-30 16:56:01 +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
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +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
42ed91f94c
Fix bug #26692 ; Could not find GetLongPathNameA under NT4.
...
This fix relies on you having the Platform SDK headers.
Using the new build system, the NewAPIs.h header will be detected
automatically, however, for people building using .dsp files,
you will need to add /DHAVE_NEWAPIS_H=1 to the TSRM project
if you have those newer headers.
2003-12-22 15:01:05 +00:00
Marcus Boerger
c1e905dfc1
Removed doubled loop from wrongly applied patch
2003-12-14 15:41:50 +00:00
Zeev Suraski
3788ddb383
Fix from Michael Sisolak (destructors weren't always properly called)
2003-12-14 09:36:23 +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
Wez Furlong
f7a86e5b5e
Explicitly include this header for SHFILEINFO.
...
# no need to MFH
2003-12-03 14:26:41 +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
16002532b7
- Fix indentation
2003-12-01 20:18:55 +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
foobar
db50cd251e
Aligned configure help texts.
2003-10-03 05:24:33 +00:00
Stanislav Malyshev
646e83e57f
MF4: Have realpath now
2003-09-30 09:49:40 +00:00
Stanislav Malyshev
1a773f17d3
MF4: add realpath function for win32
2003-09-30 09:48:53 +00:00
Ilia Alshanetsky
e010d8ac9b
Revert patch r1.40, bug is in glob() not IS_ABSOLUTE_PATH()
2003-09-20 02:06:42 +00:00
Ilia Alshanetsky
142c325f23
Fixed bug #25583 (Incorrect handling of absolute path without drive).
2003-09-20 01:39:55 +00:00
foobar
28447d62da
- Fixed bug #25240 (spaces before pre-processor directives)
2003-08-25 23:24:29 +00:00
Ilia Alshanetsky
63fcd301e9
Fixed bug #21958 (workaround for unusual realpath() on AIX & Tru64).
2003-08-07 15:32:18 +00:00
Ilia Alshanetsky
5ead9d369e
Fixed bug #17414 (pthreads bug work around)
...
Patch by timo.teras[at]iki.fi
2003-08-05 20:03:54 +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
Derick Rethans
810ac117f0
- Fix non-ZTS build after Sterling's changes to TSRM
2003-04-28 10:40:28 +00:00
Sterling Hughes
a294f9b2d1
add TSRMLS_FETCH_CTX which allows you to map a variable to a ts context.
...
This is useful when you are mapping callbacks, you can simply associate
a struct member to a thread context:
void mycallback(my_struct *user) {
TSRMLS_FETCH_CTX(user->thread_ctx);
}
2003-04-27 21:57:07 +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
foobar
8a316d5f69
VCWD_LSTAT is not available on win32/netware
2003-02-20 06:16:37 +00:00
Zeev Suraski
fb607799cc
More Win32 build improvements
2003-02-17 13:27:15 +00:00
Derick Rethans
f35f5f56c4
- Whitespace fixes
2003-02-09 12:15:05 +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
Zeev Suraski
efb9fdf0e6
call dtors on shutdown
2003-01-07 10:33:22 +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
709681e085
Make IS_ABSOLUTE_PATH use the IS_UNC_PATH macro rather then duplicate the
...
code in the IS_UNC_PATH macro.
2002-12-20 00:41:41 +00:00
Anantha Kesari H Y
e46b0bfa79
Netware related changes/modifications.
2002-12-19 11:12:04 +00:00
Ilia Alshanetsky
9a24983487
On Win32 make PHP treat UNC paths as absolute paths, this should solve bugs
...
such as #20831 . Thanks to Wez Furlong for isolating the problem.
2002-12-11 00:32:33 +00:00
Ilia Alshanetsky
f0e2c04582
Revert of previous patch ad requested by Andi.
2002-11-15 16:36:55 +00:00
Ilia Alshanetsky
8bfe7d76ea
Fix bug 19689, solution suggested by dmitry@koteroff.ru.
2002-11-14 13:45:08 +00:00
Ilia Alshanetsky
b03d1d6032
Fix missing header warnings (alloca.h) on Sun Os & Tru64.
2002-11-11 16:32:36 +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
Andi Gutmans
bdc5bb5739
- Fix TSRM_ERROR macro
2002-11-05 17:34:47 +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
Derick Rethans
cdc3b6d652
- Whitspace
2002-10-05 11:34:02 +00:00
David Reid
2a0fbded3d
Add BeOS thread support to TSRM. This should not impact on any other OS's
...
but allows us to build PHP with threading support and therefore we can
build as an Apache 2 module.
The locking is currently done using benaphores but this may be reviewed.
2002-10-05 11:26:17 +00:00
Sascha Schumann
db3f7448a1
Add VCWD_ACCESS
2002-10-04 01:04:00 +00:00