I tested 7.2 version, In all application i see error "Trapped PHP$DELPHI Fatal error: Unknown: Failed opening required '-' (include_path='.,c:\php5\pear') in unknown line 0
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-05-24
I had the same problem and I have solved it.
Cause: I have on hold version of php5ts.dll
Solution 1:
Update the dll to version 5.3XX
Solution 2:
find the file named PHP.INC (INC not INI)
open it with notepad
find
{$DEFINE PHP504}
{$DEFINE PHP510}
{$DEFINE PHP511}
{$DEFINE PHP512}
{$DEFINE PHP520} {$DEFINE PHP530}
Hi again,
I did that but appears not working. Maybe other problem.
{For PHP5 you have to define the subversion of PHP}
{.$DEFINE PHP504}
{.$DEFINE PHP510}
{.$DEFINE PHP511}
{.$DEFINE PHP512}
{.$DEFINE PHP520}
{$DEFINE PHP530}
I made a new release of PHP4Delphi
This version supports Delphi 5 - Delphi 2010 and PHP 4 - PHP 5.3.0
More information at http://delphi32.blogspot.com
I tested 7.2 version, In all application i see error
"Trapped PHP$DELPHI Fatal error: Unknown: Failed opening required '-' (include_path='.,c:\php5\pear') in unknown line 0
In version 7.0 all works OK
I had the same problem and I have solved it.
Cause:
I have on hold version of php5ts.dll
Solution 1:
Update the dll to version 5.3XX
Solution 2:
find the file named PHP.INC (INC not INI)
open it with notepad
find
{$DEFINE PHP504}
{$DEFINE PHP510}
{$DEFINE PHP511}
{$DEFINE PHP512}
{$DEFINE PHP520}
{$DEFINE PHP530}
corret to
{$DEFINE PHP504}
{$DEFINE PHP510}
{$DEFINE PHP511}
{$DEFINE PHP512}
{$DEFINE PHP520}
Thx
I used "Solution 1" and all works ok
Hi there,
I have done this but my builds are linked to VC6 and not VC9. Have any suggestions?
Thanks
Ricardo
You have to comment
{$DEFINE COMPILER_VC6} directive and uncomment {$DEFINE COMPILER_VC9}
Hi again,
I did that but appears not working. Maybe other problem.
{For PHP5 you have to define the subversion of PHP}
{.$DEFINE PHP504}
{.$DEFINE PHP510}
{.$DEFINE PHP511}
{.$DEFINE PHP512}
{.$DEFINE PHP520}
{$DEFINE PHP530}
{$IFDEF PHP530}
{$DEFINE ZEND_WIN32}
{$DEFINE PHP_COMPILER_ID}
{$ENDIF}
{$IFDEF PHP_COMPILER_ID}
{.$DEFINE COMPILER_VC6}
{$DEFINE COMPILER_VC9}
{$ENDIF}
any suggestion?
You have to be sure to recompile the units after modification. The fastest way is to add the lib files to the project.
Can explain a bit more? I'm lost… :)