#23080 [Ver->Csd]: php crash when using socket_strerror

From: Date: Wed, 16 Apr 2003 17:33:10 +0000
Subject: #23080 [Ver->Csd]: php crash when using socket_strerror
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37766@lists.php.net to get a copy of this message
ID: 23080 Updated by: moriyoshi@php.net Reported By: bibifoc23 at yahoo dot fr -Status: Verified +Status: Closed Bug Type: Sockets related Operating System: windows 2000 PHP Version: 4.3.2-RC (latest CVS) New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-04-07 05:16:07] sniper@php.net Seems to bork on this line: sockets.c:361: strlcpy(SOCKETS_G(strerror_buf), (char *) tmp, 10000); ------------------------------------------------------------------------ [2003-04-07 04:30:03] bibifoc23 at yahoo dot fr When i use the following command, php crash: echo socket_strerror ( 40 ); or for ( $i=0; $i < 50 ; $i++ ) { echo socket_strerror ( $i ); } i test php in cli and cgi mode. This works fine on linux. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23080&edit=1

« previous php.bugs (#37766) next »