com php-src: reduce struct sizes by 8 bytes each on 64 bit: ext/pdo/php_pdo_driver.h

From: Date: Sun, 14 Sep 2014 09:13:17 +0000
Subject: com php-src: reduce struct sizes by 8 bytes each on 64 bit: ext/pdo/php_pdo_driver.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81588@lists.php.net to get a copy of this message
Commit: 101adecbcd95eeffca5e0f73bf2a64d513de764d Author: Anatol Belski <ab@php.net> Sun, 14 Sep 2014 11:13:17 +0200 Parents: 34e39783b18d915dcbd700da8fbede93e3859390 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=101adecbcd95eeffca5e0f73bf2a64d513de764d Log: reduce struct sizes by 8 bytes each on 64 bit Changed paths: M ext/pdo/php_pdo_driver.h Diff: diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index 279619e...c720756 100644 --- a/ext/pdo/php_pdo_driver.h +++ b/ext/pdo/php_pdo_driver.h @@ -528,10 +528,10 @@ static inline pdo_dbh_object_t *php_pdo_dbh_fetch_object(zend_object *obj) { /* describes a column */ struct pdo_column_data { char *name; - int namelen; zend_ulong maxlen; - enum pdo_param_type param_type; zend_ulong precision; + enum pdo_param_type param_type; + int namelen; /* don't touch this unless your name is dbdo */ void *dbdo_data; @@ -539,18 +539,21 @@ struct pdo_column_data { /* describes a bound parameter */ struct pdo_bound_param_data { + zval parameter; /* the variable itself */ + + zval driver_params; /* optional parameter(s) for the driver */ + zend_long paramno; /* if -1, then it has a name, and we don't know the index *yet* */ zend_string *name; zend_long max_value_len; /* as a hint for pre-allocation */ - - zval parameter; /* the variable itself */ - enum pdo_param_type param_type; /* desired or suggested type */ - zval driver_params; /* optional parameter(s) for the driver */ void *driver_data; pdo_stmt_t *stmt; /* for convenience in dtor */ + + enum pdo_param_type param_type; /* desired or suggested variable type */ + int is_param; /* parameter or column ? */ };

« previous php.cvs (#81588) next »