php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2026 include_path is ignored in command line
Submitted: 1999-08-10 17:58 UTC Modified: 1999-08-10 18:00 UTC
From: ezran at goshen dot edu Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0.11 OS: linux 2.2.5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ezran at goshen dot edu
New email:
PHP Version: OS:

 

 [1999-08-10 17:58 UTC] ezran at goshen dot edu
when I run a php script through command line, require and include ignore functions the include_path that I devined in php3.ini.

I have tried this apache module and in CGI mode.

Example code

<?php

require('my_function.inc');

echo "blah";

?>

When I did "php /home/ezran/php/test.php3", it returns:

Failed opening 'my_function.inc' for inclusion in
<b>home/ezran/php/test.php3</b> on line <b>3</b> <br>




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-10 18:00 UTC] rasmus at cvs dot php dot net
Then you didn't compile the module version and the cgi version to look at the same php3.ini file
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 10:01:30 2024 UTC