com php-src: fix stream_wrapper_register(): main/st reams/userspace.c

From: Date: Mon, 04 Nov 2013 10:12:10 +0000
Subject: com php-src: fix stream_wrapper_register(): main/st reams/userspace.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73850@lists.php.net to get a copy of this message
Commit: 446cfd3e1c255c40f1f403296d294923f6f5cf06 Author: Anatol Belski <ab@php.net> Mon, 4 Nov 2013 11:12:10 +0100 Parents: 48e63da6599d360b817617857237015196f9083e Branches: str_size_and_int64 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=446cfd3e1c255c40f1f403296d294923f6f5cf06 Log: fix stream_wrapper_register() Changed paths: M main/streams/userspace.c Diff: diff --git a/main/streams/userspace.c b/main/streams/userspace.c index 5b77392..fd43b52 100644 --- a/main/streams/userspace.c +++ b/main/streams/userspace.c @@ -522,9 +522,9 @@ PHP_FUNCTION(stream_wrapper_register) zend_str_size protocol_len, classname_len; struct php_user_stream_wrapper * uwrap; int rsrc_id; - long flags = 0; + php_int_t flags = 0; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "SS|l", &protocol, &protocol_len, &classname, &classname_len, &flags) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "SS|i", &protocol, &protocol_len, &classname, &classname_len, &flags) == FAILURE) { RETURN_FALSE; }

« previous php.cvs (#73850) next »