wez             Tue Dec  2 11:35:20 2003 EDT

  Modified files:              
    /php-src/main/streams       xp_socket.c 
  Log:
  this can't be persistent
  
Index: php-src/main/streams/xp_socket.c
diff -u php-src/main/streams/xp_socket.c:1.19 php-src/main/streams/xp_socket.c:1.20
--- php-src/main/streams/xp_socket.c:1.19       Sun Nov 30 14:43:30 2003
+++ php-src/main/streams/xp_socket.c    Tue Dec  2 11:35:19 2003
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: xp_socket.c,v 1.19 2003/11/30 19:43:30 iliaa Exp $ */
+/* $Id: xp_socket.c,v 1.20 2003/12/02 16:35:19 wez Exp $ */
 
 #include "php.h"
 #include "ext/standard/file.h"
@@ -632,7 +632,7 @@
        if (clisock >= 0) {
                php_netstream_data_t *clisockdata;
 
-               clisockdata = pemalloc(sizeof(*clisockdata), stream->is_persistent);
+               clisockdata = emalloc(sizeof(*clisockdata));
 
                if (clisockdata == NULL) {
                        close(clisock);
@@ -643,6 +643,7 @@
 
                        xparam->outputs.client = php_stream_alloc_rel(stream->ops, 
clisockdata, NULL, "r+");
                        if (xparam->outputs.client) {
+                               /* TODO: addref ? */
                                xparam->outputs.client->context = stream->context;
                        }
                }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to