-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp72.php
40 lines (34 loc) · 984 Bytes
/
php72.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
namespace Zend\Db\ResultSet {
function count($a, $b = COUNT_NORMAL) {
return override_count($a, $b);
}
}
namespace Zend\Db\Sql {
function count($a, $b = COUNT_NORMAL) {
return override_count($a, $b);
}
}
namespace Zend\Validator {
function idn_to_utf8($domain) {
return override_idn_to_utf8($domain);
}
function idn_to_ascii($domain) {
return override_idn_to_ascii($domain);
}
}
namespace {
function override_count($a, $b = COUNT_NORMAL) {
if (is_array($a) || $a instanceof Countable) {
return count($a, $b);
} else {
return 1;
}
}
function override_idn_to_utf8($domain, $options = 0, $variant = INTL_IDNA_VARIANT_UTS46) {
return idn_to_utf8($domain, $options, $variant);
}
function override_idn_to_ascii($domain, $options = 0, $variant = INTL_IDNA_VARIANT_UTS46) {
return idn_to_ascii($domain, $options, $variant);
}
}