Browse Source

MFH: Fix #47231 (offsetGet error using incorrect offset)

experimental/5.3-FPM
Etienne Kneuss 18 years ago
parent
commit
8623e9db8b
  1. 1
      NEWS
  2. 2
      ext/spl/spl_array.c

1
NEWS

@ -31,6 +31,7 @@ PHP NEWS
- Fixed bug #47320 ($php_errormsg out of scope in functions). (Dmitry)
- Fixed bug #47265 (generating phar.phar fails because of safe_mode). (Greg)
- Fixed bug #47243 (OCI8: Crash at shutdown on Windows) (Chris Jones/Oracle Corp.)
- Fixed bug #47231 (offsetGet error using incorrect offset). (Etienne)
- Fixed bug #47229 (preg_quote() should escape the '-' char). (Nuno)
- Fixed bug #47085 (rename() returns true even if the file in PHAR does not
exist). (Greg)

2
ext/spl/spl_array.c

@ -346,7 +346,7 @@ static zval **spl_array_get_dimension_ptr_ptr(int check_inherited, zval *object,
zend_hash_index_find(ht, index, (void **) &retval);
return retval;
} else {
zend_error(E_NOTICE, "Undefined offset: %ld", Z_LVAL_P(offset));
zend_error(E_NOTICE, "Undefined offset: %ld", index);
return &EG(uninitialized_zval_ptr);
}
} else {

Loading…
Cancel
Save