diff options
author | Johannes Schlüter <johannes@php.net> | 2009-01-12 12:54:17 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2009-01-12 12:54:17 +0000 |
commit | 66c17bcca4e153b8b15a8820de4528a3fd728aba (patch) | |
tree | 35d0dfd2314eb6c4ca0ddeaeeec463e225d70f1c /ext/mysqli/mysqli.c | |
parent | ecbf90b98051acbf51430845f2dfea2a64807442 (diff) | |
download | php-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.c | 7 |
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 */ |