Game Development Community

Torque 3D Beta 1 Bug - PHP warning when creating a new project

by Michael Putters · in Torque 3D Professional · 05/01/2009 (1:30 am) · 6 replies

I have the latest PHP installed (for use with Apache), when I tried to create a project I got a warning stating it couldn't load some PHP extensions, such as xslt (even though they load just fine when using PHP via Apache).
The project gets created fine though, and runs. Just to let you know.

#1
05/01/2009 (1:33 am)
Hum... it should be running the PHP.exe in the engine\bin\php folder.
#2
05/01/2009 (1:34 am)
Hm in my case it seems to fetch it from D:\php (where I installed it).
Note that I have D:\php in my path environment variable...
#3
05/01/2009 (1:40 am)
Try this.

Open the generateProjects.bat file and find this line...

@%TORQUEDIR%\engine\bin\php\php %TORQUEDIR%\Tools\projectGenerator\projectGenerator.php buildFiles/config/project.conf %TORQUEDIR%

... and add a .EXE to it...

@%TORQUEDIR%\engine\bin\php\php.EXE %TORQUEDIR%\Tools\projectGenerator\projectGenerator.php buildFiles/config/project.conf %TORQUEDIR%

I suspect since we're not explicitly stating the full binary name that the path is being checked first.
#4
05/01/2009 (1:56 am)
I tried changing TemplatesFullgenerateProjects.bat (I assume it's the one used when creating a new project from the toolbox) but I still get the message:

PHP Startup: Unable to load dynamic library 'D:PHPextphp_xsl.dll' - The specified procedure could not be found.

However I went to my D:PHP (since that's in the path) and renamed php.ini, at which point it worked fine. I suppose php.exe looks for php.ini and finds mine because there isn't one in binphp. I tried adding a -n to the command line but didn't seem to help...

edit: to make it clearer (in case I got the arguments wrong) I tested with:

@%TORQUEDIR%\engine\bin\php\php.exe -n -f %TORQUEDIR%\Tools\projectGenerator\projectGenerator.php buildFiles/config/project.conf %TORQUEDIR%
and
@%TORQUEDIR%\engine\bin\php\php.exe -n %TORQUEDIR%\Tools\projectGenerator\projectGenerator.php buildFiles/config/project.conf %TORQUEDIR%
#5
05/04/2009 (5:20 pm)
Logged for further investigation.
#6
05/05/2009 (2:51 am)
that happened to me 2 on TGEA - I have Apache on my machine aswell

Doesn't really matter as it works the same - wouldn't call it a bug, more of a short inconveniance