svn: /php/php-src/ branches/PHP_5_3/main/streams/plain_wrapper.c trunk/main/streams/plain_wrapper.c
| From: | Pierre Joye | Date: | Sun, 21 Feb 2010 17:44:25 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/main/streams/plain_wrapper.c trunk/main/streams/plain_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-61892@lists.php.net to get a copy of this message | ||
pajoye Sun, 21 Feb 2010 17:44:25 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295308
Log:
- get the right error on windows
Changed paths:
U php/php-src/branches/PHP_5_3/main/streams/plain_wrapper.c
U php/php-src/trunk/main/streams/plain_wrapper.c
Modified: php/php-src/branches/PHP_5_3/main/streams/plain_wrapper.c
===================================================================
--- php/php-src/branches/PHP_5_3/main/streams/plain_wrapper.c 2010-02-21 17:34:25 UTC (rev 295307)
+++ php/php-src/branches/PHP_5_3/main/streams/plain_wrapper.c 2010-02-21 17:44:25 UTC (rev 295308)
@@ -866,6 +866,10 @@
dir = VCWD_OPENDIR(path);
#ifdef PHP_WIN32
+ if (!dir) {
+ php_win32_docref2_from_error(GetLastError(), path, path TSRMLS_CC);
+ }
+
if (dir && dir->finished) {
closedir(dir);
dir = NULL;
Modified: php/php-src/trunk/main/streams/plain_wrapper.c
===================================================================
--- php/php-src/trunk/main/streams/plain_wrapper.c 2010-02-21 17:34:25 UTC (rev 295307)
+++ php/php-src/trunk/main/streams/plain_wrapper.c 2010-02-21 17:44:25 UTC (rev 295308)
@@ -863,6 +863,10 @@
dir = VCWD_OPENDIR(path);
#ifdef PHP_WIN32
+ if (!dir) {
+ php_win32_docref2_from_error(GetLastError(), path, path TSRMLS_CC);
+ }
+
if (dir && dir->finished) {
closedir(dir);
dir = NULL;