1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-7.1'

* PHP-7.1:
  map ell the err code
This commit is contained in:
Anatol Belski
2016-08-18 15:31:36 +02:00

View File

@@ -730,10 +730,7 @@ TSRM_API void *shmat(int key, const void *shmaddr, int flags)
err = GetLastError();
if (err) {
/* Catch more errors */
if (ERROR_NOT_ENOUGH_MEMORY == err) {
_set_errno(ENOMEM);
}
SET_ERRNO_FROM_WIN32_CODE(err);
return (void*)-1;
}