From: orsaini at allainet dot com
Operating system: Lunux Apache 2.0.47
PHP version: 4.3.2
PHP Bug Type: *Directory/Filesystem functions
Bug description: relative include path not working with include() from shell command line execut

relative path in include function is not working when I run the script
from command prompt or through cron job. but worked fine when I run same
script from web browser through Apache.

Reproduce code:

Expected result:
should include the path when I run php through command prompt

/usr/bin/php /path/test.php

Actual result:
Warning: main(../../foldername/file.php): failed to open stream: No such
file or directory

Edit bug report at [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]
Floating point limitations: [url][/url]