Permalink
Browse files

MFH: Fixed bug #46653

  • Loading branch information...
1 parent 49a6cc2 commit 7d3d47fa272f291f7522581d814ece245b5df597 @johannes johannes committed Jan 9, 2009
Showing with 2 additions and 1 deletion.
  1. +1 −0 NEWS
  2. +1 −1 ext/mysqli/mysqli_api.c
View
1 NEWS
@@ -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).
View
2 ext/mysqli/mysqli_api.c
@@ -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;
}

0 comments on commit 7d3d47f

Please sign in to comment.