diff options
author | Dmitry Stogov <dmitry@zend.com> | 2017-12-07 19:24:55 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2017-12-07 19:24:55 +0300 |
commit | 6a9d2b2190923bfbc7b7caa1462ba95965a1b991 (patch) | |
tree | 26d1695b07a29a873e5fcd74cd4af47c89454f78 /ext/sysvmsg | |
parent | c890d469fab27500f0fa1070dccb16b36aa8be76 (diff) | |
download | php-git-6a9d2b2190923bfbc7b7caa1462ba95965a1b991.tar.gz |
Cleanup type conversion
Diffstat (limited to 'ext/sysvmsg')
-rw-r--r-- | ext/sysvmsg/sysvmsg.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ext/sysvmsg/sysvmsg.c b/ext/sysvmsg/sysvmsg.c index 8fc76436c4..59bcc86c29 100644 --- a/ext/sysvmsg/sysvmsg.c +++ b/ext/sysvmsg/sysvmsg.c @@ -173,20 +173,16 @@ PHP_FUNCTION(msg_set_queue) /* now pull out members of data and set them in the stat buffer */ if ((item = zend_hash_str_find(Z_ARRVAL_P(data), "msg_perm.uid", sizeof("msg_perm.uid") - 1)) != NULL) { - convert_to_long_ex(item); - stat.msg_perm.uid = Z_LVAL_P(item); + stat.msg_perm.uid = zval_get_long(item); } if ((item = zend_hash_str_find(Z_ARRVAL_P(data), "msg_perm.gid", sizeof("msg_perm.gid") - 1)) != NULL) { - convert_to_long_ex(item); - stat.msg_perm.gid = Z_LVAL_P(item); + stat.msg_perm.gid = zval_get_long(item); } if ((item = zend_hash_str_find(Z_ARRVAL_P(data), "msg_perm.mode", sizeof("msg_perm.mode") - 1)) != NULL) { - convert_to_long_ex(item); - stat.msg_perm.mode = Z_LVAL_P(item); + stat.msg_perm.mode = zval_get_long(item); } if ((item = zend_hash_str_find(Z_ARRVAL_P(data), "msg_qbytes", sizeof("msg_qbytes") - 1)) != NULL) { - convert_to_long_ex(item); - stat.msg_qbytes = Z_LVAL_P(item); + stat.msg_qbytes = zval_get_long(item); } if (msgctl(mq->id, IPC_SET, &stat) == 0) { RETVAL_TRUE; |