Got a strange problem since i upgraded to PHP 5.2.3. The class_demo and my own class both work but apache crashes when there is a certain kind of database access (like starting phpMyAdmin or sqlLitemanager from Wamp5).
The crashes dissapear when I disable both of my extensions.
The crahes also occur when i access PhpInfo() in Wamp (to show info on all extensions).
I compiled with all PHP5 defines, although they only go up to 5.2.0.
----
Wim van der Vegt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PHP4Delphi conditional directives define versions of PHP like "from this version and better".
Not all versions of PHP are included in this list, only where some PHP internal structures or functions were redefined.
The standard set of directives for PHP 5.2.3 should look like:
{For PHP5 you have to define subversion}
{$DEFINE PHP504}
{$DEFINE PHP510}
{$DEFINE PHP511}
{$DEFINE PHP512}
{$DEFINE PHP520}
As you see, ALL directives are enabled.
In case if you are using PHP 5.1.2, for example it should look like:
{For PHP5 you have to define subversion}
{$DEFINE PHP504}
{$DEFINE PHP510}
{$DEFINE PHP511}
{$DEFINE PHP512}
{.$DEFINE PHP520}
There are no important changes between 5.2.0 and 5.2.3 versions, so special directives are not defined.
Today I installed PHP 5.2.3 and tested class_demo example with Apache 2. I haven't seen any problems.
I don't understand what kind of relation can be between this module and database access, but I will try to figure it out.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Today I made a test with Apache 2, PHP 5.2.3 and sqlLitemanager and everything works fine for me, no any crashes, so actually I can't reproduce this case. Maybe the problem is not in combination of class-demo and sqlite, but something else.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
At the moment (copied the dll from another php5 version into the 5.2.3 extensions) does it work like it should! Compiled with all php5 defines checked.
I discovered some problems in my own code preventing multiple instances (think that caused the problems with phpadmin/phpinfo etc). I was sure I still had problems yesterday, so perhaps I compiled the dll into the wrong directory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Got a strange problem since i upgraded to PHP 5.2.3. The class_demo and my own class both work but apache crashes when there is a certain kind of database access (like starting phpMyAdmin or sqlLitemanager from Wamp5).
The crashes dissapear when I disable both of my extensions.
The crahes also occur when i access PhpInfo() in Wamp (to show info on all extensions).
I compiled with all PHP5 defines, although they only go up to 5.2.0.
----
Wim van der Vegt
PHP4Delphi conditional directives define versions of PHP like "from this version and better".
Not all versions of PHP are included in this list, only where some PHP internal structures or functions were redefined.
The standard set of directives for PHP 5.2.3 should look like:
{For PHP5 you have to define subversion}
{$DEFINE PHP504}
{$DEFINE PHP510}
{$DEFINE PHP511}
{$DEFINE PHP512}
{$DEFINE PHP520}
As you see, ALL directives are enabled.
In case if you are using PHP 5.1.2, for example it should look like:
{For PHP5 you have to define subversion}
{$DEFINE PHP504}
{$DEFINE PHP510}
{$DEFINE PHP511}
{$DEFINE PHP512}
{.$DEFINE PHP520}
There are no important changes between 5.2.0 and 5.2.3 versions, so special directives are not defined.
Today I installed PHP 5.2.3 and tested class_demo example with Apache 2. I haven't seen any problems.
I don't understand what kind of relation can be between this module and database access, but I will try to figure it out.
I also have the same problem. As soon as I put PHPClass in my PHP Extension, Apache crash. Any clue ?
My class works fine with previous (PHP4) version.
Hi,
Today I made a test with Apache 2, PHP 5.2.3 and sqlLitemanager and everything works fine for me, no any crashes, so actually I can't reproduce this case. Maybe the problem is not in combination of class-demo and sqlite, but something else.
Hi,
At the moment (copied the dll from another php5 version into the 5.2.3 extensions) does it work like it should! Compiled with all php5 defines checked.
I discovered some problems in my own code preventing multiple instances (think that caused the problems with phpadmin/phpinfo etc). I was sure I still had problems yesterday, so perhaps I compiled the dll into the wrong directory.