com php-src: Fixed offset_key: ext/spl/spl_array.c

From: Date: Fri, 28 Feb 2014 14:52:18 +0000
Subject: com php-src: Fixed offset_key: ext/spl/spl_array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77779@lists.php.net to get a copy of this message
Commit: 4340f1a561d8b549f6d59a8cf99485107cd5ae1f Author: Xinchen Hui <laruence@gmail.com> Fri, 28 Feb 2014 22:52:18 +0800 Parents: 0680cdb4ac1c78b24be4433441b21c1f1fa348e6 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4340f1a561d8b549f6d59a8cf99485107cd5ae1f Log: Fixed offset_key Changed paths: M ext/spl/spl_array.c Diff: diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index 4933c4f..8c8a819 100644 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -320,17 +320,17 @@ fetch_dim_string: if ((retval = (zend_symtable_find(ht, offset_key))) == NULL) { switch (type) { case BP_VAR_R: - zend_error(E_NOTICE, "Undefined index: %s", Z_STRVAL_P(offset)); + zend_error(E_NOTICE, "Undefined index: %s", offset_key->val); case BP_VAR_UNSET: case BP_VAR_IS: retval = &EG(uninitialized_zval); break; case BP_VAR_RW: - zend_error(E_NOTICE,"Undefined index: %s", Z_STRVAL_P(offset)); + zend_error(E_NOTICE,"Undefined index: %s", offset_key->val); case BP_VAR_W: { zval value; ZVAL_UNDEF(&value); - retval = zend_symtable_update(ht, Z_STR_P(offset), &value); + retval = zend_symtable_update(ht, offset_key, &value); } } }

« previous php.cvs (#77779) next »