Req #29280 [Opn->Csd]: Add php.ini option to set default proxy for wrappers

From: Date: Tue, 27 Jul 2021 12:19:26 +0000
Subject: Req #29280 [Opn->Csd]: Add php.ini option to set default proxy for wrappers
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235401@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=29280&edit=1 ID: 29280 Updated by: cmb@php.net Reported by: Progman2002 at gmx dot de Summary: Add php.ini option to set default proxy for wrappers -Status: Open +Status: Closed Type: Feature/Change Request Package: Streams related Operating System: * PHP Version: * -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: > Current CVS now has stream_context_get_default() which returns > the default context used by all newly created streams (unless > explicitly overriden). > > You can use this in your script (perhaps via auto_prepend) to > set the proxy globally. That. Anything else (INI directive, environment variable, etc.) needs someone to pursue the RFC process[1]. [1] <https://wiki.php.net/rfc/howto> Previous Comments: ------------------------------------------------------------------------ [2019-08-01 18:10:06] sid dot asad dot siddiqui at gmail dot com Having PHP respect the HTTP_PROXY environment variable would be great. Most programs do it. It was a surprise to see that PHP does not support it. It is even bigger surprise to see that there no way to set proxy globally. The only possible solution requires making modifications in the source, which is so much undesirable. ------------------------------------------------------------------------ [2019-04-23 07:49:20] m dot weinstein at swp dot de It's 2019. Anything new on this issue? ------------------------------------------------------------------------ [2011-04-05 11:29:15] play4fun_82 at yahoo dot com Hi, i have the same problem. My solution was to pass through proxy server with cntml tunneling tool. You configure cntml proxy to forward http request received on local host on a port to destination with proper authentication. And in pear u just configure >pear config-set http_proxy 127.0.0.1:3128 3128 - is port configuret in cntlm(it can be any other free port). ------------------------------------------------------------------------ [2009-09-17 09:34:29] fuzzy76 at fuzzy76 dot net Is that a yes or a no on the ini option? :) I need to use a proxy in my office, and this makes testing webapps really difficult. ------------------------------------------------------------------------ [2008-06-04 19:07:46] r13ckj at gmail dot com I was just wondering whether this has been implemented? My problem is outlined here: http://forums.devshed.com/php-development-5/default-proxy-settings-for-php4-5t-534829.html#post2054576 I've spent countless hours on this problem, so any help would be much appreciated. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=29280 -- Edit this bug report at https://bugs.php.net/bug.php?id=29280&edit=1

« previous php.bugs (#235401) next »