- Fixed bug #23326 (ext/domxml: Attributes via append_child not supported).
(Melvyn)
- Fixed bug #21220 (Wrong Apache version shown in phpinfo() output). (Jani)
+- Fixed bug #14049 (realpath() w/ZTS returns invalid results for non-existent
+ paths). (Ilia)
25 Aug 2003, Version 4.3.3
- Upgraded the bundled Expat library to version 1.95.6. (Jani)
#include <sys/stat.h>
#include <fcntl.h>
#ifdef PHP_WIN32
+#include <io.h>
#include <windows.h>
#include <winsock.h>
#define O_RDONLY _O_RDONLY
convert_to_string_ex(path);
if (VCWD_REALPATH(Z_STRVAL_PP(path), resolved_path_buff)) {
+#if ZTS
+# if PHP_WIN32
+ if (_access(resolved_path_buff, 0))
+ RETURN_FALSE;
+# else
+ if (access(resolved_path_buff, F_OK))
+ RETURN_FALSE;
+# endif
+#endif
RETURN_STRING(resolved_path_buff, 1);
} else {
RETURN_FALSE;