summaryrefslogtreecommitdiff
path: root/ext/sysvmsg/sysvmsg.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-01-24 16:29:40 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-01-24 16:29:40 +0000
commit38ad0e91046fc7bd882f235491a275271897ccf7 (patch)
tree649b2075834b0aee3bfb2e4141e6f9c408c3caa9 /ext/sysvmsg/sysvmsg.c
parent95bfbfe1c1cad6611a157b7f7c0e909774dd5511 (diff)
downloadphp-git-38ad0e91046fc7bd882f235491a275271897ccf7.tar.gz
zend_error -> php_error_docref.
Diffstat (limited to 'ext/sysvmsg/sysvmsg.c')
-rw-r--r--ext/sysvmsg/sysvmsg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/sysvmsg/sysvmsg.c b/ext/sysvmsg/sysvmsg.c
index e038538fc3..a198b430db 100644
--- a/ext/sysvmsg/sysvmsg.c
+++ b/ext/sysvmsg/sysvmsg.c
@@ -223,8 +223,7 @@ PHP_FUNCTION(msg_get_queue)
/* doesn't already exist; create it */
mq->id = msgget(key, IPC_CREAT|IPC_EXCL|perms);
if (mq->id < 0) {
- zend_error(E_WARNING, "%s: msgget() failed for key 0x%x: %s",
- get_active_function_name(TSRMLS_C), key, strerror(errno));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%x: %s", key, strerror(errno));
efree(mq);
RETURN_FALSE;
}
@@ -381,8 +380,7 @@ PHP_FUNCTION(msg_send)
efree(messagebuffer);
if (result == -1) {
- zend_error(E_WARNING, "%s(): msgsnd failed: %s",
- get_active_function_name(TSRMLS_C), strerror(errno));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "msgsnd failed: %s", strerror(errno));
if (zerror) {
ZVAL_LONG(zerror, errno);
}