summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2009-01-12 12:54:17 +0000
committerJohannes Schlüter <johannes@php.net>2009-01-12 12:54:17 +0000
commit66c17bcca4e153b8b15a8820de4528a3fd728aba (patch)
tree35d0dfd2314eb6c4ca0ddeaeeec463e225d70f1c /ext/mysqli/mysqli.c
parentecbf90b98051acbf51430845f2dfea2a64807442 (diff)
downloadphp-git-66c17bcca4e153b8b15a8820de4528a3fd728aba.tar.gz
- Fix #45940 MySQLI OO does not populate connect_error property on failed
connect
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index 8921885a69..45b6047c1a 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -347,13 +347,6 @@ zval *mysqli_read_property(zval *object, zval *member, int type TSRMLS_DC)
}
if (ret == SUCCESS) {
- if ((!obj->ptr || ((MYSQLI_RESOURCE *)(obj->ptr))->status < MYSQLI_STATUS_INITIALIZED))
- {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't fetch %v", obj->zo.ce->name );
- retval = EG(uninitialized_zval_ptr);
- return(retval);
- }
-
ret = hnd->read_func(obj, &retval TSRMLS_CC);
if (ret == SUCCESS) {
/* ensure we're creating a temporary variable */