summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-08-22 13:13:54 +0200
committerAndrey Andreev <narf@devilix.net>2016-08-22 13:14:35 +0200
commitfa1ca8bdee7021a67f58a5278900266c16ef7cd7 (patch)
tree80cfc0007fcfff68448dcb96b0b1e1df43b42e49 /system/core
parentc95df51c90dc9506ec9a37a43d87238965210550 (diff)
Merge pull request #4780 from tianhe1986/develop_standard_hex2bin
[ci skip] Trigger error for "resource" type in hex2bin() inputs
Diffstat (limited to 'system/core')
-rw-r--r--system/core/compat/standard.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/compat/standard.php b/system/core/compat/standard.php
index c839c9bc9..6b7caa485 100644
--- a/system/core/compat/standard.php
+++ b/system/core/compat/standard.php
@@ -153,7 +153,7 @@ if ( ! function_exists('hex2bin'))
*/
function hex2bin($data)
{
- if (in_array($type = gettype($data), array('array', 'double', 'object'), TRUE))
+ if (in_array($type = gettype($data), array('array', 'double', 'object', 'resource'), TRUE))
{
if ($type === 'object' && method_exists($data, '__toString'))
{