From: drubior at tinet dot org Operating system: Solaris 8 PHP version: 4.3.6 PHP Bug Type: Apache2 related Bug description: Php_value and php_flag directives ignored by apache-2.0.49
Description: ------------ I think that the directives passed to virtual hosts via httpd.conf are failing. Concretly I've only testet php_value and php_flag. I'm under Solaris 8, with apache 2.0.49 and php 4.3.6 I've the directive allow_url_fopen set to Off on php.ini, but on the virtual host definition I have: <VirtualHost *> ServerName www.pageyouwant.net DocumentRoot /apps/pgyw/html ScriptAlias /cgi-bin/ /apps/pgyw/html/cgi-bin/ php_flag allow_url_fopen on </VirtualHost> My configure is: './configure' '--prefix=/apps/php-4.3.6' '--with-apxs2=/apps/apache/bin/apxs' '--with-zlib' '--enable-exif' '--with-jpeg-dir=/usr/local/lib' '--with-png-dir=/usr/local/lib' '--with-pgsql=/apps/pg-7.4.1-altanet' '--with-openssl=/usr/local/ssl' '--enable-calendar' '--enable-ftp' '--without-mysql' '--with-gnu-ld' '--with-gd' Reproduce code: --------------- The script failing is someone using fopen with an url, e.g: $this->url = "http://somedomain.com/file.txt"; $this->fp = fopen($this->url, "r") Expected result: ---------------- I expect to find some content placed in the referenced file Actual result: -------------- The php page makes a warning saying that url_fopen is not permitted by my host: Warning: fopen(): URL file-access is disabled in the server configuration in /apps/pgyw/html/includes/noticies.php on line 42 Warning: fopen(http://somedomain.com/file.txt): failed to open stream: no suitable wrapper could be found in /apps/pgyw/html/includes/noticies.php on line 42 -- Edit bug report at http://bugs.php.net/?id=28203&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28203&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28203&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28203&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28203&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28203&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28203&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28203&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28203&r=support Expected behavior: http://bugs.php.net/fix.php?id=28203&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28203&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28203&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28203&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28203&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28203&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28203&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28203&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28203&r=float
