Bug in Zend Studio 5.5’s php.ini

In the php.ini file used by the PHP5 executable, the include path is hosed.  If you installed in the default location and are running Windows, you’ll probably find the file at

C:\Program Files\Zend\ZendStudio-5.5.0\bin\php5\php.ini

This line is from the original file:

include_path = C:\Program Files\Zend\ZendStudio-5.5.0\bin\ZendFramework\library;.

You might notice that the value is not wrapped in quotes, which makes the ; character demark the beginning of a comment. That eliminates your current working directory from the include path, which is a pretty major disaster when requiring external files into your script. The solution is (taa-daa!) to wrap the value in quotes:

include_path = "C:\Program Files\Zend\ZendStudio-5.5.0\bin\ZendFramework\library;."

What’s more annoying is that this bug was in the Beta of 5.5 as well, and apparently didn’t get fixed.

[tags]zend studio, php5, php.ini, bug, include_path[/tags]