Lines Matching refs:protocol
493 char *protocol, *classname; in PHP_FUNCTION() local
499 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", &protocol, &protocol_len, &classname,… in PHP_FUNCTION()
504 uwrap->protoname = estrndup(protocol, protocol_len); in PHP_FUNCTION()
514 if (php_register_url_stream_wrapper_volatile(protocol, &uwrap->wrapper TSRMLS_CC) == SUCCESS) { in PHP_FUNCTION()
518 if (zend_hash_exists(php_stream_get_url_stream_wrappers_hash(), protocol, protocol_len + 1)) { in PHP_FUNCTION()
519 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Protocol %s:// is already defined.", protocol); in PHP_FUNCTION()
522 …lid protocol scheme specified. Unable to register wrapper class %s to %s://", classname, protocol); in PHP_FUNCTION()
538 char *protocol; in PHP_FUNCTION() local
541 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &protocol, &protocol_len) == FAILURE) { in PHP_FUNCTION()
545 if (php_unregister_url_stream_wrapper_volatile(protocol TSRMLS_CC) == FAILURE) { in PHP_FUNCTION()
547 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to unregister protocol %s://", protocol); in PHP_FUNCTION()
559 char *protocol; in PHP_FUNCTION() local
564 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &protocol, &protocol_len) == FAILURE) { in PHP_FUNCTION()
570 …hp_error_docref(NULL TSRMLS_CC, E_NOTICE, "%s:// was never changed, nothing to restore", protocol); in PHP_FUNCTION()
574 …if ((zend_hash_find(global_wrapper_hash, protocol, protocol_len + 1, (void**)&wrapperpp) == FAILUR… in PHP_FUNCTION()
575 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s:// never existed, nothing to restore", protocol); in PHP_FUNCTION()
583 php_unregister_url_stream_wrapper_volatile(protocol TSRMLS_CC); in PHP_FUNCTION()
585 if (php_register_url_stream_wrapper_volatile(protocol, wrapper TSRMLS_CC) == FAILURE) { in PHP_FUNCTION()
586 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to restore original %s:// wrapper", protocol); in PHP_FUNCTION()