Skip to content

Instantly share code, notes, and snippets.

View KalleZ's full-sized avatar
🐟
Something fishy?

Kalle Sommer Nielsen KalleZ

🐟
Something fishy?
View GitHub Profile
<?php
const SERVER_URL = 'php.net';
var_dump(checkdnsrr());
var_dump(checkdnsrr(SERVER_URL));
foreach(['A', 'MX', 'NS', 'SOA', 'PTR', 'CNAME', 'AAAA', 'A6', 'SRV', 'NAPTR', 'TXT', 'ANY'] as $type) {
printf('%s: %s%s', $type, (checkdnsrr(SERVER_URL, type) ? 'Passed' : 'Failed'), PHP_EOL);
}
?>
diff --git a/ext/hash/config.m4 b/ext/hash/config.m4
index 070a78102a..947031a0d5 100644
--- a/ext/hash/config.m4
+++ b/ext/hash/config.m4
@@ -3,9 +3,6 @@ dnl config.m4 for extension hash
PHP_ARG_WITH(mhash, for mhash support,
[ --with-mhash[=DIR] Include mhash support])
-PHP_ARG_ENABLE(hash, whether to enable hash support,
-[ --disable-hash Disable hash support], yes)
diff --git a/ext/hash/config.m4 b/ext/hash/config.m4
index 070a78102a..947031a0d5 100644
--- a/ext/hash/config.m4
+++ b/ext/hash/config.m4
@@ -3,9 +3,6 @@ dnl config.m4 for extension hash
PHP_ARG_WITH(mhash, for mhash support,
[ --with-mhash[=DIR] Include mhash support])
-PHP_ARG_ENABLE(hash, whether to enable hash support,
-[ --disable-hash Disable hash support], yes)
diff --git a/ext/hash/config.m4 b/ext/hash/config.m4
index 070a78102a..947031a0d5 100644
--- a/ext/hash/config.m4
+++ b/ext/hash/config.m4
@@ -3,9 +3,6 @@ dnl config.m4 for extension hash
PHP_ARG_WITH(mhash, for mhash support,
[ --with-mhash[=DIR] Include mhash support])
-PHP_ARG_ENABLE(hash, whether to enable hash support,
-[ --disable-hash Disable hash support], yes)
diff --git "a/C:\\Users\\Bruger\\AppData\\Local\\Temp\\TortoiseGit\\nice-0896a3a.001.c" "b/C:\\php-sdk\\master\\vc15\\x64\\php-src\\win32\\nice.c"
index 993df0a041..d49c0f3efa 100644
--- "a/C:\\Users\\Bruger\\AppData\\Local\\Temp\\TortoiseGit\\nice-0896a3a.001.c"
+++ "b/C:\\php-sdk\\master\\vc15\\x64\\php-src\\win32\\nice.c"
@@ -23,59 +23,83 @@
* Basic Windows implementation for the nice() function.
*
* This implementation uses SetPriorityClass() as a backend for defining
- * a process priority.
+ * a process priority and SetThreadPriority() for threaded environments.
diff --git a/ext/filter/filter.c b/ext/filter/filter.c
index 56c93199f0..5d99d333f7 100644
--- a/ext/filter/filter.c
+++ b/ext/filter/filter.c
@@ -58,6 +58,7 @@ static const filter_list_entry filter_list[] = {
{ "url", FILTER_SANITIZE_URL, php_filter_url },
{ "number_int", FILTER_SANITIZE_NUMBER_INT, php_filter_number_int },
{ "number_float", FILTER_SANITIZE_NUMBER_FLOAT, php_filter_number_float },
+ { "add_slashes", FILTER_SANITIZE_ADD_SLASHES, php_filter_add_slashes },
{ "magic_quotes", FILTER_SANITIZE_MAGIC_QUOTES, php_filter_magic_quotes },
diff --git a/ext/pdo_odbc/pdo_odbc.c b/ext/pdo_odbc/pdo_odbc.c
index 0ff71a0cf8..c9d0be7580 100644
--- a/ext/pdo_odbc/pdo_odbc.c
+++ b/ext/pdo_odbc/pdo_odbc.c
@@ -92,6 +92,9 @@ PHP_MINIT_FUNCTION(pdo_odbc)
char *instance = INI_STR("pdo_odbc.db2_instance_name");
if (instance) {
char *env = malloc(sizeof("DB2INSTANCE=") + strlen(instance));
+
+ php_error_docref(NULL, E_DEPRECATED, "The pdo_odbc.db2_instance_name ini directive is deprecated and will be removed in the future");
diff --git a/ext/filter/sanitizing_filters.c b/ext/filter/sanitizing_filters.c
index a84c44d4cf..5e4f24623f 100644
--- a/ext/filter/sanitizing_filters.c
+++ b/ext/filter/sanitizing_filters.c
@@ -373,6 +373,8 @@ void php_filter_magic_quotes(PHP_INPUT_FILTER_PARAM_DECL)
{
zend_string *buf;
+ php_error_docref(NULL, E_DEPRECATED, "The 'magic_quotes' filter is deprecated and will be removed in a future version of PHP");
+
diff --git a/ext/pdo_odbc/pdo_odbc.c b/ext/pdo_odbc/pdo_odbc.c
index 0ff71a0cf8..6b31eecf7e 100644
--- a/ext/pdo_odbc/pdo_odbc.c
+++ b/ext/pdo_odbc/pdo_odbc.c
@@ -68,11 +68,6 @@ zend_ulong pdo_odbc_pool_on = SQL_CP_OFF;
zend_ulong pdo_odbc_pool_mode = SQL_CP_ONE_PER_HENV;
#endif
-#if defined(DB2CLI_VER) && !defined(PHP_WIN32)
-PHP_INI_BEGIN()
Message: Interface\AddOns\RaiderIO\core.lua:2354: attempt to concatenate field 'server' (a nil value)
Time: 06/20/18 18:55:48
Count: 1
Stack: Interface\AddOns\RaiderIO\core.lua:2354: attempt to concatenate field 'server' (a nil value)
[C]: ?
Interface\AddOns\RaiderIO\core.lua:2354: in function <Interface\AddOns\RaiderIO\core.lua:2343>
[C]: ?
[C]: in function `Show'
Interface\FrameXML\UIDropDownMenu.lua:948: in function `ToggleDropDownMenu'
Interface\FrameXML\FriendsFrame.lua:205: in function `FriendsFrame_ShowBNDropdown'