@@ -568,13 +568,13 @@ PHP_FUNCTION(stream_get_meta_data)
568568/* {{{ Retrieves list of registered socket transports */
569569PHP_FUNCTION (stream_get_transports )
570570{
571- HashTable * stream_xport_hash ;
572- zend_string * stream_xport ;
573571
574572 ZEND_PARSE_PARAMETERS_NONE ();
575573
576- stream_xport_hash = php_stream_xport_get_hash ();
577574 array_init (return_value );
575+
576+ const HashTable * stream_xport_hash = php_stream_xport_get_hash ();
577+ zend_string * stream_xport ;
578578 ZEND_HASH_MAP_FOREACH_STR_KEY (stream_xport_hash , stream_xport ) {
579579 add_next_index_str (return_value , zend_string_copy (stream_xport ));
580580 } ZEND_HASH_FOREACH_END ();
@@ -584,13 +584,12 @@ PHP_FUNCTION(stream_get_transports)
584584/* {{{ Retrieves list of registered stream wrappers */
585585PHP_FUNCTION (stream_get_wrappers )
586586{
587- HashTable * url_stream_wrappers_hash ;
588- zend_string * stream_protocol ;
589-
590587 ZEND_PARSE_PARAMETERS_NONE ();
591588
592- url_stream_wrappers_hash = php_stream_get_url_stream_wrappers_hash ();
593589 array_init (return_value );
590+
591+ const HashTable * url_stream_wrappers_hash = php_stream_get_url_stream_wrappers_hash ();
592+ zend_string * stream_protocol ;
594593 ZEND_HASH_MAP_FOREACH_STR_KEY (url_stream_wrappers_hash , stream_protocol ) {
595594 if (stream_protocol ) {
596595 add_next_index_str (return_value , zend_string_copy (stream_protocol ));
@@ -882,7 +881,7 @@ static void user_space_stream_notifier_dtor(php_stream_notifier *notifier)
882881 notifier -> ptr = NULL ;
883882}
884883
885- static zend_result parse_context_options (php_stream_context * context , HashTable * options )
884+ static zend_result parse_context_options (php_stream_context * context , const HashTable * options )
886885{
887886 zval * wval , * oval ;
888887 zend_string * wkey , * okey ;
@@ -906,7 +905,7 @@ static zend_result parse_context_options(php_stream_context *context, HashTable
906905 return SUCCESS ;
907906}
908907
909- static zend_result parse_context_params (php_stream_context * context , HashTable * params )
908+ static zend_result parse_context_params (php_stream_context * context , const HashTable * params )
910909{
911910 zval * tmp ;
912911
0 commit comments