[PHP-DEV] CVS update: php3/functions From: shane (php-dev <email protected>)
Date: 05/31/98

Date: Sunday May 31, 1998 @ 12:42
Author: shane

Update of /repository/php3/functions
In directory asf:/tmp/cvs-serv25683/functions

Modified Files:
        basic_functions.c
Log Message:
Adding function getmyiid for 'forward compatibility' with 3.1. This function
can be used in place of getmypid (both are the same in 3.0) for such things
as creating a unique id. in 3.1, getmyiid will return a thread id in threaded
servers, so it will still be very good for creating those unique id's. Using
getmyiid in 3.0 will ensure a script will behave properly in those instances
if it is moved to a threaded server under 3.1.

Index: php3/functions/basic_functions.c
diff -c php3/functions/basic_functions.c:1.178 php3/functions/basic_functions.c:1.179
*** php3/functions/basic_functions.c:1.178 Sun May 31 09:15:38 1998
--- php3/functions/basic_functions.c Sun May 31 12:42:54 1998
***************
*** 192,197 ****
--- 192,200 ----
  
          {"getmyuid", php3_getmyuid, NULL},
          {"getmypid", php3_getmypid, NULL},
+ /*getmyiid is here for forward compatibility with 3.1
+ See pageinfo.c in 3.1 for more information*/
+ {"getmyiid", php3_getmypid, NULL},
          {"getmyinode", php3_getmyinode, NULL},
          {"getlastmod", php3_getlastmod, NULL},