PHP 8.1.31

48 views
Skip to first unread message

Paul Smedley

unread,
Dec 8, 2024, 4:02:06 AM12/8/24
to eCS ISP Mailing List, Apache HTTP Server for OS/2
Hi folks,

I updated the OS/2 port of PHP 8.1 to 8.1.31 (the newest source).

https://smedley.id.au/tmp/php-8.1.31-os2-20241208.zip

Straw poll please... Wonder what versions of PHP people are using?

* PHP5

* PHP7

* PHP 8.1

Also, is it worth the effort to try and port PHP 8.4 so we can be current?

Cheers,

Paul

Lewis G Rosenthal

unread,
Dec 8, 2024, 2:44:05 PM12/8/24
to apa...@googlegroups.com
Hey, Paul...

On 12/08/24 04:01 am, Paul Smedley wrote:
> Hi folks,
>
> I updated the OS/2 port of PHP 8.1 to 8.1.31 (the newest source).
>
> https://smedley.id.au/tmp/php-8.1.31-os2-20241208.zip
>
> Straw poll please... Wonder what versions of PHP people are using?
>
> * PHP5
>

Yes.

> * PHP7
>

Yes.

> * PHP 8.1
>

No.

> Also, is it worth the effort to try and port PHP 8.4 so we can be current?
>

I would say not at this time. According to:

https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/

8.4 is just now getting "beta support" in WP 6.7, and that, of course, says
nothing about support from plugins (likely nowhere near, yet, for the vast
majority).

Obviously, WP isn't the only PHP CMS (or PHP app of any kind) out there, but
it is the most widely used (and certainly, the most widely used under Apache).

I'd say keep up with 7.x (not much there; last change appears to have been
minor, in 7.4.33, from November of 2022) and 8.1, for now.

--
Lewis
-------------------------------------------------------------
Lewis G Rosenthal, CNA, CLP, CLE, CWTS, EA
Rosenthal & Rosenthal, LLC www.2rosenthals.com
visit my IT blog www.2rosenthals.net/wordpress
-------------------------------------------------------------

Paul Smedley

unread,
Dec 8, 2024, 4:40:20 PM12/8/24
to apa...@googlegroups.com
Hey Lewis,
I'm more thinking from an EOL point of view. Perhaps 8.3 would be a
better target for now than 8.4. Ubuntu 24.04 is shipping 8.3. I have a
little bit on unexpected free time on my hands this week - see
https://www.linkedin.com/feed/update/urn:li:activity:7271285592322142208/?commentUrn=urn%3Ali%3Acomment%3A(activity%3A7271285592322142208%2C7271418180017758208)&dashCommentUrn=urn%3Ali%3Afsd_comment%3A(7271418180017758208%2Curn%3Ali%3Aactivity%3A7271285592322142208)
for details :)

TLDR - I'm fine, just a minor altercation with a lawn edger that
required surgery :)

Cheers,

Paul

David Oakford

unread,
Dec 8, 2024, 5:47:40 PM12/8/24
to apa...@googlegroups.com
I am using 8.1 to try to get warpstock.org site working with it



-------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "Apache for OS/2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apache2+u...@googlegroups.com.

To view this discussion visit https://groups.google.com/d/msgid/apache2/6755F6F4.8060907%402rosenthals.com.

Lewis G Rosenthal

unread,
Dec 8, 2024, 10:58:33 PM12/8/24
to apa...@googlegroups.com
Hi, again...
From that perspective, then yes, 8.3 would be a better pick right now than
8.4. For David's needs for Warpstock, I'm not sure what the Geeklog
requirements/capabilities are WRT 8.x.

> Ubuntu 24.04 is shipping 8.3. I have a little bit on unexpected free time
> on my hands this week - see
> https://www.linkedin.com/feed/update/urn:li:activity:7271285592322142208/?commentUrn=urn%3Ali%3Acomment%3A(activity%3A7271285592322142208%2C7271418180017758208)&dashCommentUrn=urn%3Ali%3Afsd_comment%3A(7271418180017758208%2Curn%3Ali%3Aactivity%3A7271285592322142208)
> for details :)
>
> TLDR - I'm fine, just a minor altercation with a lawn edger that required
> surgery :)
>

OMG... I had no idea. I've been following the Qt6 discussion on OS/2 World,
but hadn't seen a mention of it there from you (perhaps I missed it). Heal
quickly.

Paul Smedley

unread,
Dec 8, 2024, 11:03:19 PM12/8/24
to apa...@googlegroups.com
Hey Lewis,

On 9/12/24 14:28, Lewis G Rosenthal wrote:
>
> On 12/08/24 04:40 pm, Paul Smedley wrote:
>> TLDR - I'm fine, just a minor altercation with a lawn edger that
>> required surgery :)
>>
>
> OMG... I had no idea. I've been following the Qt6 discussion on OS/2
> World, but hadn't seen a mention of it there from you (perhaps I
> missed it). Heal quickly.
>
It only happened on Friday (my time) - Dave posting the link to the
latest binaries was a result of me being at the ED :)

Cheers,

Paul

David McKenna

unread,
Dec 9, 2024, 5:33:14 PM12/9/24
to Apache for OS/2
Paul,

  Wow - from the look of that X-ray, I can hardly believe you were able to finish the lawn. Must have been extremely painful - those lawn edgers can be voracious. Hope you recover well and stay safe!

 Tried the latest php 8.1 and it works fine with Wordpress, phpMyAdmin, and Filegator.  Will keep using it.

  A new build of 8.2 or even 8.3 would be good - be glad to try using either if you decide to build. I agree with Lewis that 8.4 can probably wait for now.

 One thing would be really great if it is possible - a build of MySQL version 8 or better. Wordpress wants 8.0 at a minimum, but OS/2 is still at 5.6.

Regards,

Paul Smedley

unread,
Dec 9, 2024, 9:10:20 PM12/9/24
to apa...@googlegroups.com
Hey Dave,

On 10/12/24 09:03, David McKenna wrote:
>   Wow - from the look of that X-ray, I can hardly believe you were
> able to finish the lawn. Must have been extremely painful - those lawn
> edgers can be voracious. Hope you recover well and stay safe!
>
To be honest - whether it was shock, or adrenaline, but at the time, it
didn't hurt that much. Friday night and Saturday morning before the op,
was a different story!
>  Tried the latest php 8.1 and it works fine with Wordpress,
> phpMyAdmin, and Filegator.  Will keep using it.
>
>   A new build of 8.2 or even 8.3 would be good - be glad to try using
> either if you decide to build. I agree with Lewis that 8.4 can
> probably wait for now.
>
Aiming for latest 8.3 for now.
>  One thing would be really great if it is possible - a build of MySQL
> version 8 or better. Wordpress wants 8.0 at a minimum, but OS/2 is
> still at 5.6.
>
Yeah there are some API that mysql 5.7+ use that we don't have, I forget
the exact ones. timer related IIRC.

Cheers,

Paul

Paul Smedley

unread,
Dec 10, 2024, 2:48:25 AM12/10/24
to apa...@googlegroups.com
Hi All,

On 10/12/24 12:40, Paul Smedley wrote:
> On 10/12/24 09:03, David McKenna wrote:
>>  Tried the latest php 8.1 and it works fine with Wordpress,
>> phpMyAdmin, and Filegator.  Will keep using it.
>>
>>   A new build of 8.2 or even 8.3 would be good - be glad to try using
>> either if you decide to build. I agree with Lewis that 8.4 can
>> probably wait for now.
>>
> Aiming for latest 8.3 for now.
>
https://smedley.id.au/tmp/php-8.3.14-os2-20241210.zip is a quick and
lightly tested build.... phpbz2.dll not loading for some reason....

Cheers,

Paul

Paul Smedley

unread,
Dec 10, 2024, 3:12:35 AM12/10/24
to apa...@googlegroups.com
Hey Dave,

On 10/12/24 09:03, David McKenna wrote:
> One thing would be really great if it is possible - a build of MySQL
> version 8 or better. Wordpress wants 8.0 at a minimum, but OS/2 is
> still at 5.6.

I refreshed my memory....

5.7+ introduce
https://github.com/mysql/mysql-server/blob/5.7/mysys/posix_timers.c and
https://github.com/mysql/mysql-server/blob/5.7/mysys/win_timers.c

the posix version uses timer_create() and friends that we don't have.

Cheers,

Paul

David McKenna

unread,
Dec 10, 2024, 4:36:08 PM12/10/24
to Apache for OS/2
Paul,

Ah - that's too bad about timer_create in MySQL 8. I tried your php 8.3 build and it seems to work fine with Wordpress (except it will need a newly built imagick.dll module for that version), but neither Filegator nor phpMyAdmin work - I get a blank white screen when I try to use them. Not sure if they don't yet support 8.3, or there is a defect in the build. I'll attach the php error log in case it is interesting.... thanks! Hope your're feeling better.

Regards,
php_errors.log

Paul Smedley

unread,
Dec 10, 2024, 4:43:03 PM12/10/24
to apa...@googlegroups.com
Hey Dave,

On 11/12/24 08:06, David McKenna wrote:
> Ah - that's too bad about timer_create in MySQL 8. I tried your php
> 8.3 build and it seems to work fine with Wordpress (except it will
> need a newly built imagick.dll module for that version), but neither
> Filegator nor phpMyAdmin work - I get a blank white screen when I try
> to use them. Not sure if they don't yet support 8.3, or there is a
> defect in the build. I'll attach the php error log in case it is
> interesting.... thanks! Hope your're feeling better.
>
Thanks for the log - looks like two different issues. filegator is a
problem with "PHP Fatal error:  Uncaught Random\RandomException: Cannot
open /dev/urandom" which now makes sense , as there was a source file
removed in 8.3 relating to random, which must have had OS/2 specific
code for random in it. This one should be easy to fix.

I'm note sure about phpmyadmin, the fatal error reported is:

PHP Fatal error:  Uncaught TypeError: PhpMyAdmin\Menu::__construct():
Argument #1 ($dbi) must be of type PhpMyAdmin\DatabaseInterface, null
given, called in C:/Data/htdocs/phpMyAdmin/libraries/classes/Header.php
on line 114 and defined in
C:/Data/htdocs/phpMyAdmin/libraries/classes/Menu.php:57

I'll have to google it later.

I'm actually feeling pretty good - almost feel bad for being on sick
leave and not working :P

Cheers,

Paul

David McKenna

unread,
Dec 10, 2024, 4:51:50 PM12/10/24
to Apache for OS/2
Paul,

  Looks like phpMyAdmin doesn't yet support 8.3 (it uses to 7.4 to 8.2). Can't yet find anything definitive about Filegator...

Regards,

Paul Smedley

unread,
Dec 10, 2024, 4:56:26 PM12/10/24
to apa...@googlegroups.com
Hi Dave,

On 11/12/24 08:12, Paul Smedley wrote:
> Hey Dave,
>
> On 11/12/24 08:06, David McKenna wrote:
>> Ah - that's too bad about timer_create in MySQL 8. I tried your php
>> 8.3 build and it seems to work fine with Wordpress (except it will
>> need a newly built imagick.dll module for that version), but neither
>> Filegator nor phpMyAdmin work - I get a blank white screen when I try
>> to use them. Not sure if they don't yet support 8.3, or there is a
>> defect in the build. I'll attach the php error log in case it is
>> interesting.... thanks! Hope your're feeling better.
>>
> Thanks for the log - looks like two different issues. filegator is a
> problem with "PHP Fatal error:  Uncaught Random\RandomException:
> Cannot open /dev/urandom" which now makes sense , as there was a
> source file removed in 8.3 relating to random, which must have had
> OS/2 specific code for random in it. This one should be easy to fix.
>
With any luck - https://smedley.id.au/tmp/php-8.3.14-20241211.zip will
fix this.

https://smedley.id.au/tmp/imagick-3.7.0-php-8.3-os2-20241211.zip should
take care of imagick (untested tho)

Cheers,

Paul

David McKenna

unread,
Dec 10, 2024, 5:45:01 PM12/10/24
to Apache for OS/2
Paul,

  Had bad luck with this php.dll - nothing works with it, and it crashes httpd and locks up the server. Using the previous php.dll, the imagick.dll does load properly (haven't tested its function yet) - thanks! I'll attach POPUPLOG. It never made a php_errors file...

Regards,
POPUPLOG.OS2

Paul Smedley

unread,
Dec 10, 2024, 7:13:59 PM12/10/24
to apa...@googlegroups.com
Hey Dave,

On 11/12/24 09:15, David McKenna wrote:
>   Had bad luck with this php.dll - nothing works with it, and it
> crashes httpd and locks up the server. Using the previous php.dll, the
> imagick.dll does load properly (haven't tested its function yet) -
> thanks! I'll attach POPUPLOG. It never made a php_errors file...
>
Sorry about that. https://smedley.id.au/tmp/php-8.3.14-20241211.zip has
been refreshed - it starts up OK here and php_info() loads.

Cheers,

Paul

David McKenna

unread,
Dec 10, 2024, 8:32:32 PM12/10/24
to Apache for OS/2
Paul,

  Yes, it loads fine and I can display my non-php web page, but when I go to a php using page (like Wordpress or Filegator), the server locks up and must be rebooted, then replace the php.dll file. I got an exceptq file this time - when I start the http server with this latest php.dll, then immediately shut it down (like after a reboot), I get this exceptq file. It doesn't seem to list php.dll?

Regards,
675898cf-0064_01-HTTPD-exceptq.txt

David McKenna

unread,
Dec 31, 2024, 11:11:22 AM12/31/24
to Apache for OS/2
Paul,

  I was trying this build of php 8.3 again, and I can use it from the command line with simple php commands so it seem as if it works, but I can't use it for web pages. I wonder if modphp.dll needs to be updated with the changes you made for php.dll too? Or maybe some of the modules?

Regards,

Paul Smedley

unread,
Jan 2, 2025, 1:21:33 AMJan 2
to apa...@googlegroups.com

Hey Dave,

Just confirming, the initial build that had the issues with php_random() did work? So might be an issue with the changes I made to implement random. I'll try find some time to look at this soon-ish.

Too many projects that need work...

- Qt

- Samba

- Bind

- PHP

- MySQL

- Others

<sigh>

Cheers,

Paul

--
You received this message because you are subscribed to the Google Groups "Apache for OS/2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apache2+u...@googlegroups.com.

David McKenna

unread,
Jan 2, 2025, 8:48:53 AMJan 2
to Apache for OS/2
Hi Paul,

  It worked with Wordpress, but not Filegator (which led you to the php_random issue). With latest php.dll installed (containing the update for php_random), my system locks up when any webpage using php is accessed.

  Thanks for all you do Paul, I'm glad to help out with testing whatever you work on. php 8.1 is working just fine here, so I'd say 8.3 is a low priority for now.

Regards,
Reply all
Reply to author
Forward
0 new messages