]> granicus.if.org Git - php/commitdiff
Internal function argumensts cleanup (strict_types)
authorXinchen Hui <laruence@gmail.com>
Sun, 13 Dec 2015 06:52:37 +0000 (22:52 -0800)
committerXinchen Hui <laruence@gmail.com>
Sun, 13 Dec 2015 06:52:37 +0000 (22:52 -0800)
ext/com_dotnet/com_com.c
ext/date/php_date.c
ext/dom/node.c
ext/standard/streamsfuncs.c
ext/xml/xml.c
ext/xmlwriter/php_xmlwriter.c

index fc7a04000d8a6aa3159abd3c5994336679145fc1..121433688da6e8e25bf1f4454508f0fa22b728d7 100644 (file)
@@ -810,7 +810,7 @@ PHP_FUNCTION(com_message_pump)
 }
 /* }}} */
 
-/* {{{ proto bool com_load_typelib(string typelib_name [, int case_insensitive])
+/* {{{ proto bool com_load_typelib(string typelib_name [, bool case_insensitive])
    Loads a Typelibrary and registers its constants */
 PHP_FUNCTION(com_load_typelib)
 {
index 50c48eb43936cbd31f73c3b207dd44a0809a7a2b..828f5e5ef7894712c97c5cb6fee7160a535daad7 100644 (file)
@@ -3579,9 +3579,9 @@ PHP_FUNCTION(date_diff)
        zval         *object1, *object2;
        php_date_obj *dateobj1, *dateobj2;
        php_interval_obj *interval;
-       zend_long          absolute = 0;
+       zend_bool      absolute = 0;
 
-       if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "OO|l", &object1, date_ce_interface, &object2, date_ce_interface, &absolute) == FAILURE) {
+       if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "OO|b", &object1, date_ce_interface, &object2, date_ce_interface, &absolute) == FAILURE) {
                RETURN_FALSE;
        }
        dateobj1 = Z_PHPDATE_P(object1);
index 2f35e0110b1ab47dad6a63ef3e47341c95a77bba..cf119f7a48e97a278d39d646f2e133ddbcf4e398 100644 (file)
@@ -1348,9 +1348,9 @@ PHP_FUNCTION(dom_node_clone_node)
        xmlNode *n, *node;
        int ret;
        dom_object *intern;
-       zend_long recursive = 0;
+       zend_bool recursive = 0;
 
-       if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O|l", &id, dom_node_class_entry, &recursive) == FAILURE) {
+       if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O|b", &id, dom_node_class_entry, &recursive) == FAILURE) {
                return;
        }
 
index eb85bd0184eb0c96de013e5d5ca72951deeaeefd..f257ef85e6ba887f0d08de7fb84ad616493650c1 100644 (file)
@@ -1330,7 +1330,7 @@ PHP_FUNCTION(stream_get_line)
 
 /* }}} */
 
-/* {{{ proto bool stream_set_blocking(resource socket, int mode)
+/* {{{ proto bool stream_set_blocking(resource socket, bool mode)
    Set blocking/non-blocking mode on a socket or stream */
 PHP_FUNCTION(stream_set_blocking)
 {
index bcded6203abbb16880657e493bce569a3809b31a..3a300c8e7e621839dae9a1fb6d8ee699d6f9bd56 100644 (file)
@@ -1383,7 +1383,7 @@ PHP_FUNCTION(xml_set_end_namespace_decl_handler)
 }
 /* }}} */
 
-/* {{{ proto int xml_parse(resource parser, string data [, int isFinal]) 
+/* {{{ proto int xml_parse(resource parser, string data [, bool isFinal])
    Start parsing an XML document */
 PHP_FUNCTION(xml_parse)
 {
@@ -1392,9 +1392,9 @@ PHP_FUNCTION(xml_parse)
        char *data;
        size_t data_len;
        int ret;
-       zend_long isFinal = 0;
+       zend_bool isFinal = 0;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs|l", &pind, &data, &data_len, &isFinal) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs|b", &pind, &data, &data_len, &isFinal) == FAILURE) {
                return;
        }
 
index a7da0e79024717e465a250ca67f6acab0c985caf..9e9e8f39e8c04872efbd389aaf593dbef2dc5456 100644 (file)
@@ -1622,7 +1622,7 @@ static PHP_FUNCTION(xmlwriter_end_dtd_entity)
 }
 /* }}} */
 
-/* {{{ proto bool xmlwriter_write_dtd_entity(resource xmlwriter, string name, string content [, int pe [, string pubid [, string sysid [, string ndataid]]]])
+/* {{{ proto bool xmlwriter_write_dtd_entity(resource xmlwriter, string name, string content [, bool pe [, string pubid [, string sysid [, string ndataid]]]])
 Write full DTD Entity tag - returns FALSE on error */
 static PHP_FUNCTION(xmlwriter_write_dtd_entity)
 {