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

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

Update of /repository/php31/ext/standard
In directory asf:/tmp/cvs-serv29933/ext/standard

Modified Files:
        basic_functions.c
Log Message:
Force 3rd and 4th args to fsockopen to be call-by-ref since there is
no point in sending these by-value.

Index: php31/ext/standard/basic_functions.c
diff -c php31/ext/standard/basic_functions.c:1.10 php31/ext/standard/basic_functions.c:1.11
*** php31/ext/standard/basic_functions.c:1.10 Sun May 31 17:21:49 1998
--- php31/ext/standard/basic_functions.c Sun May 31 17:32:57 1998
***************
*** 77,82 ****
--- 77,83 ----
  #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
***************
*** 131,137 ****
          {"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},
--- 132,138 ----
          {"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},