RE: [PHP-DEV] doc_root problem

From: Date: Fri, 15 Sep 2000 04:13:38 +0000
Subject: RE: [PHP-DEV] doc_root problem
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-33289@lists.php.net to get a copy of this message
I'd say, keep the fixed one ... and users should fix their PHP code. Fix the doc too (if needed). -----Original Message----- From: Andi Gutmans [mailto:andi@zend.com] Sent: Thursday, September 14, 2000 4:55 PM To: PHP Development Subject: [PHP-DEV] doc_root problem A lot of users have posted problems with doc_root & safe_mode. This is between PHP 4.0.1pl2 and 4.0.2. I fixed a bug in fopen-wrappers.c line 416 in this time period where filename was being used instead of trypath (an obvious mistake because why did the author bother to setup trypath 3 lines before with the snprintf()). So what was happening was that when doc_root was set it wasn't really being appended in php_fopen_with_path but only in php_fopen_primary_script. Now it seems that the problem is something like this: doc_root is set to /foo/bar they include "/foo/bar/blah.inc" and then they get /foo/bar/foo/bar/blah.inc. From what I understand (both from the manual and from the code which was written in PHP 3's fopen-wrapper) that the current behavior after my fix is the correct one. Does anyone think differently? How should we address this issue? Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/ -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#33289) next »