summaryrefslogtreecommitdiff
path: root/ext/sockets/sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sockets/sockets.c')
-rw-r--r--ext/sockets/sockets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index 8510d99c03..1895dece6a 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -1976,8 +1976,8 @@ PHP_FUNCTION(socket_create_pair)
php_sock[0]->bsd_socket = fds_array[0];
php_sock[1]->bsd_socket = fds_array[1];
- php_sock[0]->type = Z_LVAL_PP(arg1);
- php_sock[1]->type = Z_LVAL_PP(arg1);
+ Z_TYPE_P(php_sock[0]) = Z_LVAL_PP(arg1);
+ Z_TYPE_P(php_sock[1]) = Z_LVAL_PP(arg1);
ZEND_REGISTER_RESOURCE(retval[0], php_sock[0], le_socket);
ZEND_REGISTER_RESOURCE(retval[1], php_sock[1], le_socket);