]> granicus.if.org Git - php/commitdiff
PDO code assumes that different parts of the union alligned in special way
authorDmitry Stogov <dmitry@zend.com>
Mon, 5 May 2014 22:02:00 +0000 (02:02 +0400)
committerDmitry Stogov <dmitry@zend.com>
Mon, 5 May 2014 22:02:00 +0000 (02:02 +0400)
ext/pdo/php_pdo_driver.h

index 6a0faaa121dd7830eb1d02423ff44ac5f0f60922..0326eaa5a128a3a42a48adbfb44845dbbca47448 100644 (file)
@@ -605,19 +605,18 @@ struct _pdo_stmt_t {
        union {
                int column;
                struct {
-                       zend_class_entry *ce;   
-                       void *_reserved;
                        zval ctor_args;            /* freed */
-                       zval retval; 
                        zend_fcall_info fci;
                        zend_fcall_info_cache fcc;
+                       zval retval; 
+                       zend_class_entry *ce;   
                } cls;
                struct {
-                       zval function;
                        zval fetch_args;           /* freed */
-                       zval object;
                        zend_fcall_info fci;
                        zend_fcall_info_cache fcc;
+                       zval object;
+                       zval function;
                        zval *values;              /* freed */
                } func;
                zval into;