PHP 4.0 Bug #8306: incorrect error-detection for shmat();
| From: | Robert dot Siemer at gmx dot de | Date: | Mon, 18 Dec 2000 03:15:15 +0000 |
| Subject: | PHP 4.0 Bug #8306: incorrect error-detection for shmat(); | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41698@lists.php.net to get a copy of this message | ||
From: Robert.Siemer@gmx.de
Operating system: Linux 2.4.0-test9
PHP version: 4.0.3pl1
PHP Bug Type: Semaphore related
Bug description: incorrect error-detection for shmat();
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.
--
Edit Bug report at: http://bugs.php.net/?id=8306&edit=1