. Fixed bug #74719 (fopen() should accept NULL as context). (Alexander Holman)
. Fixed bug #69948 (path/domain are not sanitized in setcookie). (cmb)
. Fixed bug #75996 (incorrect url in header for mt_rand). (tatarbj)
+ . Remove superfluous warnings from inet_ntop()/inet_pton(). (daverandom)
- Testing:
. Implemented request #62055 (Make run-tests.php support --CGI-- sections).
} else
#endif
if (address_len != 4) {
- php_error_docref(NULL, E_WARNING, "Invalid in_addr value");
RETURN_FALSE;
}
if (!inet_ntop(af, address, buffer, sizeof(buffer))) {
- php_error_docref(NULL, E_WARNING, "An unknown error occurred");
RETURN_FALSE;
}
} else
#endif
if (!strchr(address, '.')) {
- php_error_docref(NULL, E_WARNING, "Unrecognized address %s", address);
RETURN_FALSE;
}
ret = inet_pton(af, address, buffer);
if (ret <= 0) {
- php_error_docref(NULL, E_WARNING, "Unrecognized address %s", address);
RETURN_FALSE;
}
Warning: inet_ntop() expects exactly 1 parameter, 0 given in %s on line %d
bool(false)
-
-Warning: inet_ntop(): Invalid in_addr value in %s on line %d
bool(false)
-
-Warning: inet_ntop(): Invalid in_addr value in %s on line %d
bool(false)
-
-Warning: inet_ntop(): Invalid in_addr value in %s on line %d
bool(false)
Warning: inet_pton() expects exactly 1 parameter, 0 given in %s on line %d
bool(false)
-
-Warning: inet_pton(): Unrecognized address in %s on line %d
bool(false)
-
-Warning: inet_pton(): Unrecognized address -1 in %s on line %d
bool(false)
-
-Warning: inet_pton(): Unrecognized address abra in %s on line %d
bool(false)
-string(%d) "7f000001"
+string(8) "7f000001"
string(9) "127.0.0.1"
-string(%d) "42a3a174"
+string(8) "42a3a174"
string(14) "66.163.161.116"
-string(%d) "ffffffff"
+string(8) "ffffffff"
string(15) "255.255.255.255"
-string(%d) "00000000"
+string(8) "00000000"
string(7) "0.0.0.0"
Done
string(4) "::35"
string(5) "::255"
string(6) "::1024"
-
-Warning: inet_pton(): Unrecognized address in %s on line %d
-
-Warning: inet_ntop(): Invalid in_addr value in %s on line %d
bool(false)
string(36) "2001:db8:85a3:8d3:1319:8a2e:370:7344"
string(15) "2001:db8:1234::"