Lines Matching refs:protocol

500 	zend_string *protocol, *classname;  in PHP_FUNCTION()  local
505 if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS|l", &protocol, &classname, &flags) == FAILURE) { in PHP_FUNCTION()
510 uwrap->protoname = estrndup(ZSTR_VAL(protocol), ZSTR_LEN(protocol)); in PHP_FUNCTION()
519 if (php_register_url_stream_wrapper_volatile(ZSTR_VAL(protocol), &uwrap->wrapper) == SUCCESS) { in PHP_FUNCTION()
523 if (zend_hash_exists(php_stream_get_url_stream_wrappers_hash(), protocol)) { in PHP_FUNCTION()
524 php_error_docref(NULL, E_WARNING, "Protocol %s:// is already defined.", ZSTR_VAL(protocol)); in PHP_FUNCTION()
527 …specified. Unable to register wrapper class %s to %s://", ZSTR_VAL(classname), ZSTR_VAL(protocol)); in PHP_FUNCTION()
543 char *protocol; in PHP_FUNCTION() local
546 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &protocol, &protocol_len) == FAILURE) { in PHP_FUNCTION()
550 if (php_unregister_url_stream_wrapper_volatile(protocol) == FAILURE) { in PHP_FUNCTION()
552 php_error_docref(NULL, E_WARNING, "Unable to unregister protocol %s://", protocol); in PHP_FUNCTION()
564 zend_string *protocol; in PHP_FUNCTION() local
568 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &protocol) == FAILURE) { in PHP_FUNCTION()
574 …php_error_docref(NULL, E_NOTICE, "%s:// was never changed, nothing to restore", ZSTR_VAL(protocol)… in PHP_FUNCTION()
578 if ((wrapper = zend_hash_find_ptr(global_wrapper_hash, protocol)) == NULL) { in PHP_FUNCTION()
579 php_error_docref(NULL, E_WARNING, "%s:// never existed, nothing to restore", ZSTR_VAL(protocol)); in PHP_FUNCTION()
584 php_unregister_url_stream_wrapper_volatile(ZSTR_VAL(protocol)); in PHP_FUNCTION()
586 if (php_register_url_stream_wrapper_volatile(ZSTR_VAL(protocol), wrapper) == FAILURE) { in PHP_FUNCTION()
587 php_error_docref(NULL, E_WARNING, "Unable to restore original %s:// wrapper", ZSTR_VAL(protocol)); in PHP_FUNCTION()