[PHP-DEV] CVS update: php3/functions From: nyenyon (php-dev <email protected>)
Date: 12/17/98

Date: Thursday December 17, 1998 @ 17:58
Author: nyenyon

Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv24065

Modified Files:
        sysvshm.c
Log Message:
fixing a nasty bug on linux. thx to sander.

Index: php3/functions/sysvshm.c
diff -c php3/functions/sysvshm.c:1.2 php3/functions/sysvshm.c:1.3
*** php3/functions/sysvshm.c:1.2 Mon Dec 14 10:16:55 1998
--- php3/functions/sysvshm.c Thu Dec 17 17:58:50 1998
***************
*** 27,33 ****
     +----------------------------------------------------------------------+
   */
   
! /* $Id: sysvshm.c,v 1.2 1998/12/14 15:16:55 ssb Exp $ */
  
  /* This has been built and tested on Solaris 2.6.
   * It may not compile or execute correctly on other systems.
--- 27,33 ----
     +----------------------------------------------------------------------+
   */
   
! /* $Id: sysvshm.c,v 1.3 1998/12/17 22:58:50 nyenyon Exp $ */
  
  /* This has been built and tested on Solaris 2.6.
   * It may not compile or execute correctly on other systems.
***************
*** 299,305 ****
          /* setup string-variable and serialize */
          shm_var.type=IS_STRING;
          shm_var.value.str.len=0;
! shm_var.value.str.val=emalloc(0);
          php3api_var_serialize(&shm_var,arg_var);
          /* insert serialized variable into shared memory */
          ret=php3int_put_shmdata(shm_list_ptr->ptr,key,shm_var.value.str.val,shm_var.value.str.len);
--- 299,306 ----
          /* setup string-variable and serialize */
          shm_var.type=IS_STRING;
          shm_var.value.str.len=0;
! shm_var.value.str.val=emalloc(1);
! shm_var.value.str.val[0]=0;
          php3api_var_serialize(&shm_var,arg_var);
          /* insert serialized variable into shared memory */
          ret=php3int_put_shmdata(shm_list_ptr->ptr,key,shm_var.value.str.val,shm_var.value.str.len);

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>