ID:               15302
 Comment by:       pmack at cw dot net
 Reported By:      fox at murder dot cz
 Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: FreeBSD 4.4
 PHP Version:      4.1.1
 New Comment:

I also have this issue with PHP 4.3.1

My Config is:
 './configure' '--with-mysql' '--with-apxs=/usr/sbin/apxs' '--with-gd'
'--with-jpeg-dir=../jpeg-6b' '--with-zlib-dir=../jpeg-6b'

Linux 2.2.19 

Any ideas on how to fix this other than to remove all the lines?


Previous Comments:
------------------------------------------------------------------------

[2002-12-19 17:34:13] tonyhana_nospam_ at lvcm dot com

Yeah Im getting the same internmittent problem here.. under

FreeBSD monster.phatservers.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Sun
Nov 24 00:06:33 PST 2002 
PHP 4.2.3

Also using Plesk..and Zend optimizer

'./configure' '--with-apxs=/usr/local/psa/apache/bin/apxs'
'--prefix=/usr/local/psa/apache' '--with-system-regex'
'--with-config-file-path=/usr/local/psa/apache/conf' '--disable-debug'
'--enable-pear' '--enable-sockets' '--enable-track-vars' '--with-gd'
'--with-mysql=/usr/local/psa/mysql' '--with-iodbc' '--with-pam'
'--with-kerberos' '--with-zend' '--with-imap' '--with-curl'
'--with-freetype-dir=/usr/local/include/freetype2'

------------------------------------------------------------------------

[2002-10-14 00:34:19] bin at entertainz dot co dot nz

Note the original author said 'randomly' - I am also experiencing this
problem with some scripts under 4.2.3.  95% of the time they run fine
and echo text to the screen, but occasionally will fail with this
error:

Warning: open_basedir restriction in effect. File is in wrong directory
in Unknown on line 0

------------------------------------------------------------------------

[2002-08-14 19:00:21] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The 'problem', is that according to open_basedir limitations you do not
have permission to run your
<?
echo "test";
?>
script. Hence the error you are seeing.

------------------------------------------------------------------------

[2002-03-23 12:53:21] fox at murder dot cz

Ive used php.ini-optimized from php-4.0.6 and it seems to work now.

obtw. it misbehaved also in php-4.1.2 with recommended php.ini

------------------------------------------------------------------------

[2002-01-30 16:02:12] fox at murder dot cz

I have the same problem as in the closed bug #12995 so im opening a new
thread (if this is bad, let me know, it wouldnt happen anymore).
When i put just a file which contains:
<?
echo "test";
?>
i randomly get error message:

Warning: open_basedir restriction in effect. File is in wrong directory
in Unknown on line 0

Warning: Failed opening '/www/parba.cz/www/index.php' for inclusion
(include_path='.:/usr/local/lib/php') in Unknown on line 0

There is no include in that file ... just only echo.
Im using php-4.1.1 on FreeBSD4.4 and i didnt compile it from ports.


Im adding information from phpinfo that i think should be useful:

PHP Version 4.1.1
System: FreeBSD parba.cz 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18
11:57:08 PDT 2001    
[EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386 
Build Date: Jan 30 2002 
Configure Command:  './configure'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-safe-mode'
'--with-openssl' '--with-zlib' '--enable-bcmath' '--with-bz2'
'--enable-calendar' '--enable-ctype' '--with-curl' '--with-db'
'--enable-dbase' '--enable-ftp' '--with-gd' '--enable-gd-native-ttf'
'--with-imap' '--with-mcal' '--with-mhash'
'--with-mysql=/usr/local/mysql/' '--with-pgsql' '--with-mm'
'--enable-trans-sid' '--with-snmp' '--enable-sockets'
'--enable-inline-optimization' '--with-md5' '--enable-md5' 
Server API: Apache 

And here is my phpinfo();
http://parba.mistral.cz/phpinfo.php
of course it sometimes work and sometimes not - just need some
refreshing

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15302&edit=1

Reply via email to