mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Improved zend_string API (Francois Laupretre)
Squashed commit of the following: commitd96eab8d79
Author: Francois Laupretre <francois@tekwire.net> Date: Fri Jun 26 01:23:31 2015 +0200 Use the new 'ZSTR' macros in the rest of the code. Does not change anything to the generated code (thanks to compat macros) but cleaner. commitb352643910
Author: Francois Laupretre <francois@tekwire.net> Date: Thu Jun 25 13:45:06 2015 +0200 Improve zend_string API Add missing methods
This commit is contained in:
parent
667e9bd417
commit
4bd22cf1c1
45 changed files with 293 additions and 261 deletions
|
@ -1358,7 +1358,7 @@ php_mysqlnd_rset_field_read(void * _packet, MYSQLND_CONN_DATA * conn)
|
|||
if (meta->name != mysqlnd_empty_string) {
|
||||
meta->sname = zend_string_init(meta->name, meta->name_length, packet->persistent_alloc);
|
||||
} else {
|
||||
meta->sname = STR_EMPTY_ALLOC();
|
||||
meta->sname = ZSTR_EMPTY_ALLOC();
|
||||
}
|
||||
meta->name = meta->sname->val;
|
||||
meta->name_length = meta->sname->len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue