Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsinclude_path different in Eclipse than via CLI
https://www.eclipse.org/forums/index.php/mv/msg/207938/666078/#msg_666078
For example, I Opened up Eclipse PDT and created a new PHP file containing only this code:
In Eclipse/PDT, I choose RUN -> RUN and my script outputs this: .:/home/sneakyimp/project
If I cd to the directory where I have created that script and run it via CLI like this:
cd /home/sneakyimp/project
php my_file.php
then it outputs this: .:/usr/share/php:/usr/share/pear
Can anyone explain why that is? Can I change this behavior so my scripts truly run with the CLI include_path ?
]]>sneakyimp Mising name2011-04-19T00:39:51-00:00Re: include_path different in Eclipse than via CLI
https://www.eclipse.org/forums/index.php/mv/msg/207938/666135/#msg_666135
Bug 301031 - Run as PHP Script does not use include_path from php.ini file
]]>Toshihiro Izumi2011-04-19T09:10:01-00:00Re: include_path different in Eclipse than via CLI
https://www.eclipse.org/forums/index.php/mv/msg/207938/666540/#msg_666540
HOWEVER, on Ubuntu there is not a single php.ini file but rather a conf.d directory which has perhaps a dozen distinct php.ini files which are all included. As far as I can tell, it is only possible to include one ini file. You cannot list numerous ones.
Perhaps more importantly, I'm wondering if there is some way to simply use whatever the default php configuration is on the current system. I realize it's important to emulate specific php environments sometimes, but I'd like to just use whatever is currently in effect on my machine as a matter of convenience.
]]>sneakyimp Mising name2011-04-20T19:46:43-00:00Re: include_path different in Eclipse than via CLI
https://www.eclipse.org/forums/index.php/mv/msg/207938/666780/#msg_666780
Bug 324073 - Reading system-wide php.ini by PHP execs leads to segfaults Bug 339547 - add "Use system default php.ini configuration" in EXE prefs
]]>Toshihiro Izumi2011-04-22T13:28:03-00:00Re: include_path different in Eclipse than via CLI
https://www.eclipse.org/forums/index.php/mv/msg/207938/666832/#msg_666832
I just confess that the discussion of the command-line stuff (-c versus -n) doesn't make a lot of sense to me. I'm familiar with command line usage of PHP but don't really have any idea where to find the command line specification in Eclipse -- I'm very new to Eclipse.
I'll be checking the help files some more for a workaround ]]>sneakyimp Mising name2011-04-22T21:41:05-00:00