Bug #6942 Updated: php sockets unusable with irix-OS
| From: | sander@php.net | Date: | Sun, 16 Jun 2002 12:24:07 +0000 |
| Subject: | Bug #6942 Updated: php sockets unusable with irix-OS | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10596@lists.php.net to get a copy of this message | ||
ID: 6942
Updated by: sander@php.net
Reported By: melchers@cis.fu-berlin.de
-Status: Open
+Status: Bogus
Bug Type: Compile Warning
Operating System: IRIX-6.5.8
PHP Version: 3.0.16
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2000-09-29 16:49:23] melchers@cis.fu-berlin.de
(using php-3.0.17RC1)
file functions/fsock.c line 677:
cc: WARNING File = functions/fsock.c, Line = 677
An unsigned integer is being compared to zero.
size_t _php3_sock_fread(char *ptr, size_t size, int socket)
{
size_t ret = 0;
SOCK_FIND_AND_READ_MAX(size);
if(size < 0) return ret;
^
irix defines these types:
typedef unsigned int size_t;
typedef int ssize_t;
or
typedef unsigned long size_t;
typedef long ssize_t;
(dependent of 32/64 bit interface)
In both cases size_t is unsigned.
Therefore the function _php3_sock_fread()
returns never 0, if there are no data
at the socket to read. This makes socket
communication unusable with irix.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=6942&edit=1