php-src/ext
Calvin Buckley e074e029ee sockets: Fix variable/macro name collision on AIX
The name "rem_size" is used by a macro in a system header on AIX,
specifically `sys/xmem.h`. Without changing the name, you get the
name mangled like so:

```
In file included from /usr/include/sys/uio.h:92:0,
                 from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed-7.1/sys/socket.h:83,
                 from /usr/include/sys/syslog.h:151,
                 from /usr/include/syslog.h:29,
                 from /home/calvin/rpmbuild/BUILD/php-8.0.0RC5/main/php_syslog.h:27,
                 from /home/calvin/rpmbuild/BUILD/php-8.0.0RC5/main/php.h:318,
                 from /home/calvin/rpmbuild/BUILD/php-8.0.0RC5/ext/sockets/sendrecvmsg.c:17:
/home/calvin/rpmbuild/BUILD/php-8.0.0RC5/ext/sockets/sendrecvmsg.c: In function 'zif_socket_cmsg_space':
/home/calvin/rpmbuild/BUILD/php-8.0.0RC5/ext/sockets/sendrecvmsg.c:298:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
   size_t rem_size = ZEND_LONG_MAX - entry->size;
          ^
/home/calvin/rpmbuild/BUILD/php-8.0.0RC5/ext/sockets/sendrecvmsg.c:298:10: error: expected expression before '.' token
/home/calvin/rpmbuild/BUILD/php-8.0.0RC5/ext/sockets/sendrecvmsg.c:299:18: error: 'u2' undeclared (first use in this function)
   size_t n_max = rem_size / entry->var_el_size;
                  ^
/home/calvin/rpmbuild/BUILD/php-8.0.0RC5/ext/sockets/sendrecvmsg.c:299:18: note: each undeclared identifier is reported only once for each function it appears in
```

...because of the declaration in `sys/xmem.h`:

```
```

This just renames the variable so that it won't trip on this
definition. Tested to fix the build on IBM i PASE.

Closes GH-6453.
2020-11-25 11:54:40 +01:00
..
bcmath Fix memory leak with bcsqrt on number 0<X<1 2020-11-12 11:37:54 +01:00
bz2 Verify parameter names of function aliases 2020-10-16 10:56:33 +02:00
calendar Fix test 2020-10-07 14:58:43 +02:00
com_dotnet Fix COMPersistHelper::__construct() stub 2020-11-24 00:23:29 +01:00
ctype Add more precise type info for stubs 2020-09-01 16:35:56 +02:00
curl Allow PHP_CURL_APIs to be imported by DLLs 2020-11-24 14:12:39 +01:00
date Merge branch 'PHP-7.4' into PHP-8.0 2020-10-26 11:06:10 +01:00
dba Fix stub for dba_key_split() 2020-10-22 14:50:52 +02:00
dom Merge branch 'PHP-7.4' into PHP-8.0 2020-10-26 13:15:03 +01:00
enchant Review parameter names in ext/enchant 2020-10-02 11:55:46 +02:00
exif Review parameter names in ext/exif 2020-10-02 11:56:16 +02:00
ffi Merge branch 'PHP-7.4' into PHP-8.0 2020-10-30 15:49:48 +01:00
fileinfo Merge branch 'PHP-7.4' into PHP-8.0 2020-11-24 14:06:53 +01:00
filter Rename a few parameters in ext/filter 2020-09-29 11:04:09 +02:00
ftp Review parameter names in ext/ftp 2020-10-02 14:26:39 +02:00
gd Don't allow properties on GdImage 2020-10-22 10:34:14 +02:00
gettext Review parameter names in ext/gettext 2020-09-30 23:01:56 +02:00
gmp Merge branch 'PHP-7.4' into PHP-8.0 2020-10-15 10:17:55 +02:00
hash Update ext/spl parameter names 2020-10-07 12:26:46 +02:00
iconv Merge branch 'PHP-7.4' into PHP-8.0 2020-10-09 15:25:23 +02:00
imap Throw Value/TypeError for invalid $bodies in imap_mail_compose() 2020-10-23 20:47:35 +01:00
intl Use true/false instead of TRUE/FALSE in intl 2020-11-09 14:44:11 +01:00
json Inline pair production in json parser 2020-11-13 14:56:29 +01:00
ldap Change $controls parameter to default to null in ext/ldap 2020-10-15 11:48:47 +02:00
libxml Try to fix windows build 2020-09-03 15:07:03 +02:00
mbstring Revert "Fix out-of-bounds write" 2020-10-26 15:40:12 +01:00
mysqli Merge branch 'PHP-7.4' into PHP-8.0 2020-11-17 13:16:17 +01:00
mysqlnd Merge branch 'PHP-7.4' into PHP-8.0 2020-10-29 16:41:09 +01:00
oci8 Fix test diff 2020-11-25 16:42:12 +11:00
odbc Merge branch 'PHP-7.4' into PHP-8.0 2020-10-29 13:10:32 +01:00
opcache Fixed bug #80377 2020-11-25 11:47:05 +01:00
openssl Merge branch 'PHP-7.4' into PHP-8.0 2020-10-20 10:52:50 +02:00
pcntl Don't leak pcntl last_error across requests 2020-10-22 14:21:22 +02:00
pcre Don't leak pcre error_code across requests 2020-10-22 11:20:02 +02:00
pdo Fix PDOStatement::fetchObject() stub 2020-11-24 09:49:30 +01:00
pdo_dblib Get rid of empty function entries 2020-08-01 10:07:05 +02:00
pdo_firebird Fix #64937: Firebird PDO preprocessing sql 2020-09-25 00:07:57 +02:00
pdo_mysql Merge branch 'PHP-7.4' into PHP-8.0 2020-11-17 13:16:17 +01:00
pdo_oci Convert warnings to assetions in OCI PDO driver 2020-09-14 01:07:58 +02:00
pdo_odbc Merge branch 'PHP-7.4' into master 2020-09-28 22:59:51 +02:00
pdo_pgsql Update ext/pdo_pgsql parameter names 2020-10-13 12:31:39 +02:00
pdo_sqlite Improve parameter names in ext/pdo_sqlite 2020-10-12 18:05:35 +02:00
pgsql Fix default value handling of mysqli_fetch_object() 2020-10-20 16:48:12 +02:00
phar Sync zpp in phar interceptors 2020-10-14 16:58:07 +02:00
posix Update ext/posix parameter names 2020-10-06 09:49:40 +02:00
pspell Fix parameter name of pspell_config_save_repl() 2020-10-22 14:54:43 +02:00
readline Review parameter names in ext/readline 2020-09-30 10:10:28 +02:00
reflection Merge branch 'PHP-7.4' into PHP-8.0 2020-11-24 16:42:52 +01:00
session Fixed bug #80377 2020-11-25 11:47:05 +01:00
shmop Review parameter names in ext/shmop 2020-09-30 21:07:25 +02:00
simplexml Run tidy 2020-09-18 14:28:32 +02:00
skeleton Run tidy 2020-09-18 14:28:32 +02:00
snmp Merge branch 'PHP-7.4' into PHP-8.0 2020-11-02 11:41:37 +01:00
soap Update ext/soap parameter names 2020-10-08 16:32:01 +02:00
sockets sockets: Fix variable/macro name collision on AIX 2020-11-25 11:54:40 +01:00
sodium Update ext/sodium parameter names 2020-10-13 10:41:35 +02:00
spl Use separate directory in dit_004.phpt 2020-10-26 09:26:18 +01:00
sqlite3 Improve parameter names in ext/sqlite3 2020-10-06 23:02:18 +02:00
standard Merge branch 'PHP-7.4' into PHP-8.0 2020-11-24 13:10:35 +01:00
sysvmsg Review parameter names in ext/sysvmsg 2020-10-01 23:08:20 +02:00
sysvsem Review parameter names in ext/sysvsem 2020-10-01 23:09:31 +02:00
sysvshm Review parameter names in ext/sysvshm 2020-10-01 23:09:56 +02:00
tidy Merge branch 'PHP-7.4' into PHP-8.0 2020-11-22 14:04:59 +01:00
tokenizer Rename PhpToken::getAll() to PhpToken::tokenize() 2020-11-09 09:40:31 +01:00
xml Fix XmlParser classname in stubs 2020-10-09 10:43:35 +02:00
xmlreader Update ext/xsl parameter names 2020-10-08 10:28:50 +02:00
xmlwriter Verify parameter names of function aliases 2020-10-16 10:56:33 +02:00
xsl Update ext/xsl parameter names 2020-10-08 10:28:50 +02:00
zend_test Provide unused retvals to observers 2020-11-17 10:28:47 +01:00
zip zip extension is 1.19.2 2020-11-23 15:59:15 +01:00
zlib Verify parameter names of function aliases 2020-10-16 10:56:33 +02:00
ext_skel.php