Lines Matching refs:protocol

497 	zend_string *protocol, *classname;  in PHP_FUNCTION()  local
502 if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS|l", &protocol, &classname, &flags) == FAILURE) { in PHP_FUNCTION()
507 uwrap->protoname = estrndup(ZSTR_VAL(protocol), ZSTR_LEN(protocol)); in PHP_FUNCTION()
516 if (php_register_url_stream_wrapper_volatile(protocol, &uwrap->wrapper) == SUCCESS) { in PHP_FUNCTION()
520 if (zend_hash_exists(php_stream_get_url_stream_wrappers_hash(), protocol)) { in PHP_FUNCTION()
521 php_error_docref(NULL, E_WARNING, "Protocol %s:// is already defined.", ZSTR_VAL(protocol)); in PHP_FUNCTION()
524 …specified. Unable to register wrapper class %s to %s://", ZSTR_VAL(classname), ZSTR_VAL(protocol)); in PHP_FUNCTION()
540 zend_string *protocol; in PHP_FUNCTION() local
542 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &protocol) == FAILURE) { in PHP_FUNCTION()
546 if (php_unregister_url_stream_wrapper_volatile(protocol) == FAILURE) { in PHP_FUNCTION()
548 php_error_docref(NULL, E_WARNING, "Unable to unregister protocol %s://", ZSTR_VAL(protocol)); in PHP_FUNCTION()
560 zend_string *protocol; in PHP_FUNCTION() local
564 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &protocol) == FAILURE) { in PHP_FUNCTION()
569 if ((wrapper = zend_hash_find_ptr(global_wrapper_hash, protocol)) == NULL) { in PHP_FUNCTION()
570 php_error_docref(NULL, E_WARNING, "%s:// never existed, nothing to restore", ZSTR_VAL(protocol)); in PHP_FUNCTION()
575 if (wrapper_hash == global_wrapper_hash || zend_hash_find_ptr(wrapper_hash, protocol) == wrapper) { in PHP_FUNCTION()
576 …php_error_docref(NULL, E_NOTICE, "%s:// was never changed, nothing to restore", ZSTR_VAL(protocol)… in PHP_FUNCTION()
581 php_unregister_url_stream_wrapper_volatile(protocol); in PHP_FUNCTION()
583 if (php_register_url_stream_wrapper_volatile(protocol, wrapper) == FAILURE) { in PHP_FUNCTION()
584 php_error_docref(NULL, E_WARNING, "Unable to restore original %s:// wrapper", ZSTR_VAL(protocol)); in PHP_FUNCTION()