@@ -353,6 +353,7 @@ PHP_FUNCTION(stream_get_transports)
353
353
HashTable * stream_xport_hash ;
354
354
char * stream_xport ;
355
355
int stream_xport_len ;
356
+ ulong num_key ;
356
357
357
358
if (ZEND_NUM_ARGS () != 0 ) {
358
359
WRONG_PARAM_COUNT ;
@@ -363,7 +364,7 @@ PHP_FUNCTION(stream_get_transports)
363
364
zend_hash_internal_pointer_reset (stream_xport_hash );
364
365
while (zend_hash_get_current_key_ex (stream_xport_hash ,
365
366
& stream_xport , & stream_xport_len ,
366
- NULL , 0 , NULL ) == HASH_KEY_IS_STRING ) {
367
+ & num_key , 0 , NULL ) == HASH_KEY_IS_STRING ) {
367
368
add_next_index_stringl (return_value , stream_xport , stream_xport_len , 1 );
368
369
zend_hash_move_forward (stream_xport_hash );
369
370
}
@@ -380,6 +381,7 @@ PHP_FUNCTION(stream_get_wrappers)
380
381
HashTable * url_stream_wrappers_hash ;
381
382
char * stream_protocol ;
382
383
int key_flags , stream_protocol_len = 0 ;
384
+ ulong num_key ;
383
385
384
386
if (ZEND_NUM_ARGS () != 0 ) {
385
387
WRONG_PARAM_COUNT ;
@@ -388,7 +390,7 @@ PHP_FUNCTION(stream_get_wrappers)
388
390
if ((url_stream_wrappers_hash = php_stream_get_url_stream_wrappers_hash ())) {
389
391
array_init (return_value );
390
392
for (zend_hash_internal_pointer_reset (url_stream_wrappers_hash );
391
- (key_flags = zend_hash_get_current_key_ex (url_stream_wrappers_hash , & stream_protocol , & stream_protocol_len , NULL , 0 , NULL )) != HASH_KEY_NON_EXISTANT ;
393
+ (key_flags = zend_hash_get_current_key_ex (url_stream_wrappers_hash , & stream_protocol , & stream_protocol_len , & num_key , 0 , NULL )) != HASH_KEY_NON_EXISTANT ;
392
394
zend_hash_move_forward (url_stream_wrappers_hash )) {
393
395
if (key_flags == HASH_KEY_IS_STRING ) {
394
396
add_next_index_stringl (return_value , stream_protocol , stream_protocol_len , 1 );
@@ -640,16 +642,17 @@ static int parse_context_options(php_stream_context *context, zval *options)
640
642
char * wkey , * okey ;
641
643
int wkey_len , okey_len ;
642
644
int ret = SUCCESS ;
645
+ ulong num_key ;
643
646
644
647
zend_hash_internal_pointer_reset_ex (Z_ARRVAL_P (options ), & pos );
645
648
while (SUCCESS == zend_hash_get_current_data_ex (Z_ARRVAL_P (options ), (void * * )& wval , & pos )) {
646
- if (HASH_KEY_IS_STRING == zend_hash_get_current_key_ex (Z_ARRVAL_P (options ), & wkey , & wkey_len , NULL , 0 , & pos )
649
+ if (HASH_KEY_IS_STRING == zend_hash_get_current_key_ex (Z_ARRVAL_P (options ), & wkey , & wkey_len , & num_key , 0 , & pos )
647
650
&& Z_TYPE_PP (wval ) == IS_ARRAY ) {
648
651
649
652
zend_hash_internal_pointer_reset_ex (Z_ARRVAL_PP (wval ), & opos );
650
653
while (SUCCESS == zend_hash_get_current_data_ex (Z_ARRVAL_PP (wval ), (void * * )& oval , & opos )) {
651
654
652
- if (HASH_KEY_IS_STRING == zend_hash_get_current_key_ex (Z_ARRVAL_PP (wval ), & okey , & okey_len , NULL , 0 , & opos )) {
655
+ if (HASH_KEY_IS_STRING == zend_hash_get_current_key_ex (Z_ARRVAL_PP (wval ), & okey , & okey_len , & num_key , 0 , & opos )) {
653
656
php_stream_context_set_option (context , wkey , okey , * oval );
654
657
}
655
658
zend_hash_move_forward_ex (Z_ARRVAL_PP (wval ), & opos );
0 commit comments