dmitry                                   Thu, 22 Dec 2011 15:33:48 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=321336

Log:
Initialize structure (some fields may be missed in array returned from user 
handler).

Changed paths:
    U   php/php-src/branches/PHP_5_3/main/streams/userspace.c
    U   php/php-src/branches/PHP_5_4/main/streams/userspace.c
    U   php/php-src/trunk/main/streams/userspace.c

Modified: php/php-src/branches/PHP_5_3/main/streams/userspace.c
===================================================================
--- php/php-src/branches/PHP_5_3/main/streams/userspace.c       2011-12-22 
15:31:41 UTC (rev 321335)
+++ php/php-src/branches/PHP_5_3/main/streams/userspace.c       2011-12-22 
15:33:48 UTC (rev 321336)
@@ -863,6 +863,7 @@

 #define STAT_PROP_ENTRY(name) STAT_PROP_ENTRY_EX(name,name)

+       memset(ssb, 0, sizeof(php_stream_statbuf));
        STAT_PROP_ENTRY(dev);
        STAT_PROP_ENTRY(ino);
        STAT_PROP_ENTRY(mode);

Modified: php/php-src/branches/PHP_5_4/main/streams/userspace.c
===================================================================
--- php/php-src/branches/PHP_5_4/main/streams/userspace.c       2011-12-22 
15:31:41 UTC (rev 321335)
+++ php/php-src/branches/PHP_5_4/main/streams/userspace.c       2011-12-22 
15:33:48 UTC (rev 321336)
@@ -886,6 +886,7 @@

 #define STAT_PROP_ENTRY(name) STAT_PROP_ENTRY_EX(name,name)

+       memset(ssb, 0, sizeof(php_stream_statbuf));
        STAT_PROP_ENTRY(dev);
        STAT_PROP_ENTRY(ino);
        STAT_PROP_ENTRY(mode);

Modified: php/php-src/trunk/main/streams/userspace.c
===================================================================
--- php/php-src/trunk/main/streams/userspace.c  2011-12-22 15:31:41 UTC (rev 
321335)
+++ php/php-src/trunk/main/streams/userspace.c  2011-12-22 15:33:48 UTC (rev 
321336)
@@ -886,6 +886,7 @@

 #define STAT_PROP_ENTRY(name) STAT_PROP_ENTRY_EX(name,name)

+       memset(ssb, 0, sizeof(php_stream_statbuf));
        STAT_PROP_ENTRY(dev);
        STAT_PROP_ENTRY(ino);
        STAT_PROP_ENTRY(mode);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to