[php-src] PR #20944: Adding proper error messages for Win32 shmop
| From: | EdmondDantes | Date: | Thu, 15 Jan 2026 14:19:20 +0000 |
| Subject: | [php-src] PR #20944: Adding proper error messages for Win32 shmop | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34567@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20944
Author: EdmondDantes
* this branch may be incorrect. It might need to be moved to PHP6?
In the current Win32 shmop implementation, messages like
>
Unable to attach or create shared memory segment "no
> error" are printed.
This happens because the errno variable is not populated correctly on Win32.
This change fixes the Win32 logic so that error messages roughly match the actual outcome.
Unfortunately, it is still not perfect, as there is a case with differing segment sizes that is
handled as an invalid descriptor.