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

Date: Sunday May 31, 1998 @ 17:31
Author: rasmus

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

Modified Files:
        basic_functions.c
Log Message:
Force 3rd and 4th arguments (if present) to call-by-ref since there is
no point in not sending these by reference.

Index: php3/functions/basic_functions.c
diff -c php3/functions/basic_functions.c:1.180 php3/functions/basic_functions.c:1.181
*** php3/functions/basic_functions.c:1.180 Sun May 31 17:16:58 1998
--- php3/functions/basic_functions.c Sun May 31 17:31:24 1998
***************
*** 78,83 ****
--- 78,84 ----
  #endif
  
  static unsigned char second_and_third_args_force_ref[] = { 3, BYREF_NONE, BYREF_FORCE, BYREF_FORCE };
+ static unsigned char third_and_fourth_args_force_ref[] = { 4, BYREF_NONE, BYREF_NONE, BYREF_FORCE, BYREF_FORCE };
  #if PHP_DEBUGGER
  extern int _php3_send_error(char *message, char *address);
  #endif
***************
*** 132,138 ****
          {"rtrim", php3_chop, NULL},
          {"pos", array_current, first_arg_force_ref},
  
! {"fsockopen", php3_fsockopen, NULL},
          {"getimagesize", php3_getimagesize, NULL},
          {"htmlspecialchars", php3_htmlspecialchars, NULL},
          {"htmlentities", php3_htmlentities, NULL},
--- 133,139 ----
          {"rtrim", php3_chop, NULL},
          {"pos", array_current, first_arg_force_ref},
  
! {"fsockopen", php3_fsockopen, third_and_fourth_args_force_ref},
          {"getimagesize", php3_getimagesize, NULL},
          {"htmlspecialchars", php3_htmlspecialchars, NULL},
          {"htmlentities", php3_htmlentities, NULL},