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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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 06 08:01:33 2024 UTC