ID:               45333
 Updated by:       [EMAIL PROTECTED]
 Reported By:      omikorn at yahoo dot com
-Status:           Open
+Status:           Wont fix
 Bug Type:         *Directory/Filesystem functions
 Operating System: CentOS5
 PHP Version:      4.4.8
 New Comment:

We are sorry, but we can not support PHP 4 related problems anymore.
Momentum is gathering for PHP 6, and we think supporting PHP 4 will
lead to a waste of resources which we want to put into getting PHP 6
ready.


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

[2008-06-23 01:14:46] omikorn at yahoo dot com

include_path=".:.:" in php.ini

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

[2008-06-23 00:38:03] omikorn at yahoo dot com

Description:
------------
I have a cron script that is run on 2 different machines like this:

1st machine has php 4.3.9 installed.
2nd machine has php 4.4.8 installed.

Script is ran from cron on both machines like this:

/usr/bin/php /var/www/vhosts/whatever.com/httpdocs/script.php

script.php contains the following section:

$filename="./mailfile/dailyreport.txt";

$fp=fopen($filename,"r");

if ($fp) {
    echo "file found";
} else {
    echo "file not found"
}

When script is ran from php 4.3.9 box it works fine but from 4.4.8 it
returns a file not found error over $fp.


Reproduce code:
---------------
$filename="./mailfile/dailyreport.txt";

$fp=fopen($filename,"r");

if ($fp) {
    echo "file found";
} else {
    echo "file not found"
}

Expected result:
----------------
Script to behave like in php 4.3.9

Actual result:
--------------
$fp returns FALSE and a file not found error


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


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

Reply via email to