Date: 09/15/00
- Next message: geoffphillips <email protected>: "[PHP-DEV] PHP 4.0 Bug #6766: problem with comparing stings with zero"
- Previous message: James Moore: "[PHP-DEV] FW: TZD294 (KMM6520284C0KM)"
- Next in thread: Patrick Aland: "Re: [PHP-DEV] doc_root problem"
- Reply: Patrick Aland: "Re: [PHP-DEV] doc_root problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Can you tell me how to reproduce it exactly? I can't reproduce the problem
you are describing.
Are you using CGI? What server? What OS? What exactly are you doing?
You might be right but I see the same code in PHP 3. Maybe this is being
caused by something else either in your setup or the SAPI module in PHP.
Andi
At 09:16 PM 9/14/00 -0400, Patrick Aland wrote:
>The need to include a file isn't needed.
>A script that has simply
><?
>phpinfo();
>?>
>
>Will cause the error (I am assuming you are referring to the same bug #6480)
>
>
>On Thu, Sep 14, 2000 at 11:54:32PM +0300, Andi Gutmans wrote:
> > 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 <email protected>>
> > http://www.zend.com/
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
> > For additional commands, e-mail: php-dev-help <email protected>
> > To contact the list administrators, e-mail: php-list-admin <email protected>
>
>--
>------------------------------------------------------------
> Patrick Aland paland <email protected>
> Network Administrator Voice: 904.822.7217
> Stetson University Fax: 904.822.7367
>------------------------------------------------------------
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: geoffphillips <email protected>: "[PHP-DEV] PHP 4.0 Bug #6766: problem with comparing stings with zero"
- Previous message: James Moore: "[PHP-DEV] FW: TZD294 (KMM6520284C0KM)"
- Next in thread: Patrick Aland: "Re: [PHP-DEV] doc_root problem"
- Reply: Patrick Aland: "Re: [PHP-DEV] doc_root problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

