diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-19 00:45:53 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-19 00:45:53 +0000 |
commit | 3d8e54f3a2f72eeaf22a5ffd66a7e5465f60127c (patch) | |
tree | 1784e782a671b83758c0c836088026f73897c0ef /ext/hwapi | |
parent | add3ec4e0ba076db7cdece4bfdb852b8333e198d (diff) | |
download | php-git-3d8e54f3a2f72eeaf22a5ffd66a7e5465f60127c.tar.gz |
Changed php_error to php_error_docref.
Diffstat (limited to 'ext/hwapi')
-rw-r--r-- | ext/hwapi/hwapi.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/hwapi/hwapi.cpp b/ext/hwapi/hwapi.cpp index c8a03013d7..4f758ba185 100644 --- a/ext/hwapi/hwapi.cpp +++ b/ext/hwapi/hwapi.cpp @@ -341,15 +341,15 @@ static void *php_hwapi_get_object(zval *wrapper, int rsrc_type1) { int type; if (Z_TYPE_P(wrapper) != IS_OBJECT) { - php_error(E_ERROR, "Wrapper is not an object"); + php_error_docref(NULL TSRMLS_CC, E_ERROR, "Wrapper is not an object"); } if (zend_hash_find(Z_OBJPROP_P(wrapper), "this", sizeof("this"), (void **)&handle) == FAILURE) { - php_error(E_ERROR, "Underlying object missing"); + php_error_docref(NULL TSRMLS_CC, E_ERROR, "Underlying object missing"); } obj = zend_list_find(Z_LVAL_PP(handle), &type); if (!obj || (type != rsrc_type1)) { - php_error(E_ERROR, "Underlying object missing or of invalid type"); + php_error_docref(NULL TSRMLS_CC, E_ERROR, "Underlying object missing or of invalid type"); } return obj; } @@ -4255,7 +4255,7 @@ PHP_FUNCTION(hwapi_object_attribute) { error = objp->attribute(HW_API_String(Z_STRVAL_PP(arg1)), attr); break; default: - php_error(E_WARNING, "HW_API_Object::attribute() needs string or long as parameter"); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "HW_API_Object::attribute() needs string or long as parameter"); RETURN_FALSE; } @@ -4643,7 +4643,7 @@ PHP_FUNCTION(hwapi_error_reason) { RETURN_FALSE; } if(!objp->error()) - php_error(E_WARNING, "This is not an error"); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "This is not an error"); error = objp->reason(Z_LVAL_PP(arg1), reason); if(error) { |