[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] Re: Can't Configure PDT Include Path to find the GD library

The left column shows modules that I have when I do a phpinfo() from http://localhost/webs/test/index.php and do not have when I do a phpinfo() from within the eclipse PDT.

The right column shows the modules that I have when I do a phpinfo() from inside the eclipse PDT and do not have when I do a phpinfo() from within http://localhost/webs/test/index.php. This loan library is cgi-fcgi.



zip   cgi-fcgi
xsl
SQLite
sockets
soap
pdf
PDO
pdo_mssq
pdo_mysql
pgsql
mysqli
mysql
mssql
mssql
mime_magic
mbstring
imap
gettext
gd
exif
HTTP Headers Information
Apache Environment
apache2handler

I have noticed that my configuration file for http://localhost/webs/test/index.php is the following.
H:\xampplite\apache\bin\php.ini


_ENV["PHPRC"] does not exist.

In both the H:\xampplite\php\php.ini and the H:\xampplite\apache\bin\php.ini the extension=php_gd2.dll is uncommented.

To make sure I copied over the apache\bin\php.ini to the php\php.ini file.
I shut down apache.
I shut down the eclipse PDT.
I started apache.
I started the eclipse PDT.

I re-ran the phpinof() test on the eclipse PDT and the localhost. Again, the gd library is missing from the eclipse PDT phpinof() output.


My configuration file for the eclipse pdt is the following.
F:\Documents and Settings\Administrator\Local Settings\Temp\zend_debug\session38673.tmp\php.ini AND
PHPRC F:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\zend_debug\session32414.tmp


Its loan contents are the following.
These include_path entries I made in the Eclipse PDT Configure Include Path.


include_path=".;H:\xampplitevhgraph;H:\xampplitenusoap\lib;H:\xampplite\htdocs\webs\test;H:\xampplite\php\ext;H:\xampplite\php;H:\xampplitesmarty;H:\xampplite\php\pear"
zend_extension_ts="H:\xamppliteeclipse\eclipse\plugins\org.zend.php.debug.debugger.win32.x86_5.2.12.v20071210\resources\php5\ZendDebugger.dll"

Note, "cgi" of cgi-fcgi does not exist in either php file and is still appearing in the phpinfo() output as a library.


The org.eclipse.php.core.projectOptions.prefs file looks like the following.


#Tue May 13 03:33:34 EDT 2008
eclipse.preferences.version=1
org.eclipse.php.core.contextRoot=
org.eclipse.php.core.defaultEncoding=
org.eclipse.php.core.includePath=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<includepath>\r\n\t<includepathentry createdReference\="false" path\="H\:/xampplite/php" contentKind\="source" kind\="lib">\r\n</includepathentry>\r\n<includepathentry createdReference\="false" path\="H\:/xampplite/php/ext" contentKind\="source" kind\="lib">\r\n</includepathentry>\r\n<includepathentry createdReference\="false" path\="H\:/xampplite/php/pear" contentKind\="source" kind\="lib">\r\n</includepathentry>\r\n<includepathentry createdReference\="false" path\="H\:/xampplitenusoap/lib" contentKind\="source" kind\="lib">\r\n</includepathentry>\r\n<includepathentry createdReference\="false" path\="H\:/xampplitevhgraph" contentKind\="source" kind\="lib">\r\n</includepathentry>\r\n<includepathentry createdReference\="false" path\="H\:/xampplitesmarty" contentKind\="source" kind\="lib">\r\n</includepathentry>\r\n</includepath>\r\n


I have read the following from the following url: http://www.drupal.cz/forum/instalace-drupalu/the-gd-library-for-php-is-missing-or-outdated

In order for PHP to ; read it, it must be named &#8218;php.ini&#8216;. PHP looks for it in the current ; working directory, in the path designated by the environment variable ; PHPRC, and in the path that was defined in compile time (in that order). ; Under Windows, the compile-time path is the Windows directory. The ; path in which the php.ini file is looked for can be overridden using ; the -c argument in command line mode. ;


I have done some experimenting and testing by renaming my php.ini files to php.ini.MISSING.
The current directory test does not seem to work for php itself.
Then enviromental variable setting of PHPRC does not work for the eclipse PDT.


The situation seems that PHP has a built-in compiled php.ini that it loads when it can not find a php.ini file.

The ecplipse PDT should read the PHPRC enviromental variable. It does not do this. The eclipse PDT uses its own zend debugger. (This has been good up to this point. Now, this does not seem so good.).
Logically, if it uses its own Zend debugger, then it applies its own configuration PLUS whatever is found in "Configure Include Path" Projects and Libraries.


Unfortunately, I do not see a way to 'recognize' dlls, such as GD's php_gd2.dll


Any ideas?

Andre Mikulec