From 4340f1a561d8b549f6d59a8cf99485107cd5ae1f Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Fri, 28 Feb 2014 22:52:18 +0800 Subject: [PATCH] Fixed offset_key --- ext/spl/spl_array.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index 4933c4f753..8c8a8194ac 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); } } } -- 2.40.0