Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MFH: Fixed bug #46653

  • Loading branch information...
commit 7d3d47fa272f291f7522581d814ece245b5df597 1 parent 49a6cc2
Johannes Schlüter johannes authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  NEWS
  2. +1 −1  ext/mysqli/mysqli_api.c
1  NEWS
View
@@ -38,6 +38,7 @@ PHP NEWS
given bad data). (Ilia)
- Fixed bug #46738 (Segfault when mb_detect_encoding() fails). (Scott)
- Fixed bug #46681 (mkdir() fails silently on PHP 5.3). (Hannes)
+- Fixed bug #46653 (can't extend mysqli). (Johannes)
- Fixed bug #46646 (Restrict serialization on some internal classes like
Closure and SplFileInfo using exceptions). (Etienne)
- Fixed bug #46268 (DateTime::modify() does not reset relative time values).
2  ext/mysqli/mysqli_api.c
View
@@ -1313,7 +1313,7 @@ PHP_FUNCTION(mysqli_init)
MYSQLI_RESOURCE *mysqli_resource;
MY_MYSQL *mysql;
- if (getThis() && instanceof_function(Z_OBJCE_P(getThis()), mysqli_link_class_entry TSRMLS_CC)) {
+ if (getThis() && ((mysqli_object *) zend_object_store_get_object(getThis() TSRMLS_CC))->ptr) {
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.