Search code examples
eclipseeclipse-pdtphpinclude-path

Include path of php.ini ignored by Eclipse


I have a PHP script to run. If I run it from the command line, it works fine (include path is set correctly).

If I want to run it inside Eclipse (Run as script), then the PHP include path of my php.ini is replaced by Eclipse, with all the libraries I've added to the project.

I've configured my PHP executable in Eclipse. I've set the correct PHP executable file, and I selected my php.ini file too (the right one, I've checked). But it is ignored...

Edit : this is an Eclipse bug : https://bugs.eclipse.org/bugs/process_bug.cgi


Solution

  • This is a bug of Eclipse, 3 bugs have been filled about it but none of them got fixed.

    No solution without modifying your PHP files.

    https://bugs.eclipse.org/bugs/process_bug.cgi