summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorAaron Piotrowski <aaron@trowski.com>2015-07-05 02:37:49 -0500
committerAaron Piotrowski <aaron@trowski.com>2015-07-05 12:16:57 -0500
commit907476f34c0dbe34e311c4a99cc07eb40fd2954b (patch)
tree58c26abe27284c5c221182161cb89fdc90cadc1e /ext/mysqli/mysqli.c
parent550bbf8f4614a5c868010195f562be3e9ee6bb00 (diff)
downloadphp-git-907476f34c0dbe34e311c4a99cc07eb40fd2954b.tar.gz
Convert E_ERROR to thrown Error in extensions
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index 8039244b5c..b357f4b057 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -282,7 +282,7 @@ static void mysqli_warning_free_storage(zend_object *object)
/* {{{ mysqli_read_na */
static zval *mysqli_read_na(mysqli_object *obj, zval *retval)
{
- php_error_docref(NULL, E_ERROR, "Cannot read property");
+ zend_throw_error(zend_ce_error, "Cannot read property");
return NULL;
}
/* }}} */
@@ -290,7 +290,7 @@ static zval *mysqli_read_na(mysqli_object *obj, zval *retval)
/* {{{ mysqli_write_na */
static int mysqli_write_na(mysqli_object *obj, zval *newval)
{
- php_error_docref(NULL, E_ERROR, "Cannot write property");
+ zend_throw_error(zend_ce_error, "Cannot write property");
return FAILURE;
}
/* }}} */