Skip to content

A problem under PHP 8.0.10 using the Thread Safe DLL #24

@frafor

Description

@frafor

https://github.com/FirebirdSQL/php-firebird/releases/download/1.1.2-pre/php-8.0.1-interbase-1.1.1-win-x64-ts.dll
I am talking about that PHP InterBase dll.

The problem is the following:

select
    a.idc,
    a.corp,
    A.USR,
   sum(case
      when FHSALE is null then datediff (hour,FECHORA,current_timestamp)
      else datediff (hour,FECHORA,FHSALE)
    end) horas
from USRLOGS A where a.idu <> 1 and a.idc=126 and a.fechora > '2021-08-15'
group by 1,2,3

The above query executes well if you run it with IBExpert against a database.

If you run that SAME query against the SAME database using PHP 8, then this is what happens:

[Thu Sep 09 11:17:40.902634 2021] [mpm_winnt:notice] [pid 14992:tid 604] AH00428: Parent: child process 12468 exited with status 3221225477 -- Restarting.
[Thu Sep 09 11:17:40.976400 2021] [mpm_winnt:notice] [pid 14992:tid 604] AH00455: Apache/2.4.48 (Win64) OpenSSL/1.1.1l PHP/8.0.10 configured -- resuming normal operations
[Thu Sep 09 11:17:40.976400 2021] [mpm_winnt:notice] [pid 14992:tid 604] AH00456: Server built: Aug 25 2021 11:29:23
[Thu Sep 09 11:17:40.976400 2021] [core:notice] [pid 14992:tid 604] AH00094: Command line: 'C:\\program files\\apache24\\bin\\httpd.exe -d C:/Program Files/Apache24'
[Thu Sep 09 11:17:40.984393 2021] [mpm_winnt:notice] [pid 14992:tid 604] AH00418: Parent: Created child process 7992
[Thu Sep 09 11:17:41.696372 2021] [mpm_winnt:notice] [pid 7992:tid 1456] AH00354: Child: Starting 64 worker threads.

That is from the Apache24 log file.

All parts related to the problem have to do with the DLL specified above. I am using Firebird 4.0.0

The mentioned query has been part of a view for at least 5 years, passing from version to version of PHP / Interbase drivers used under Windows (my development environment) and Linux (my production servers).

The query works fine if the values are presented instead of the SUM( ... ) of the values grouped by 1,2,3.

It has been tested only under Windows 10 and PHP 8.0.10

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions