PHP 4.0 Bug #8306 Updated: incorrect error-detection for shmat();
| From: | hholzgra@php.net | Date: | Mon, 18 Dec 2000 12:23:31 +0000 |
| Subject: | PHP 4.0 Bug #8306 Updated: incorrect error-detection for shmat(); | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41730@lists.php.net to get a copy of this message | ||
ID: 8306
Updated by: hholzgra
Reported By: Robert.Siemer@gmx.de
Old-Status: Open
Status: Closed
Bug Type: Semaphore related
Assigned To:
Comments:
fixed in CVS
Previous Comments:
---------------------------------------------------------------------------
[2000-12-17 22:15:15] Robert.Siemer@gmx.de
In
/usr/src/php-4.0.3pl1/ext/sysvshm/sysvshm.c
is one call to shmat(). The return value is compared against NULL instead of -1 to detect an error.
At least Linux returns (int) -1 on errors.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8306