note 9147 added to Socket functions
| From: | sbur at entyre dot com | Date: | Wed, 18 Oct 2000 20:04:28 +0000 |
| Subject: | note 9147 added to Socket functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6675@lists.php.net to get a copy of this message | ||
Looking at the socket.c code at the function PHP_FUNCTION(read) for the 4.0.2 version it appears
there is a call to emalloc to allocate a temporary buffer large enough to hold the requested read
length. When is this free'd? I have run into memory limits by using this function to pull
several megabytes of data over with the end result being a PHP failure prior to completing the data
transfer, due to memory limits being exceeded. Can some one point me to the cure???
http://www.php.net/manual/ref.sockets.php