summaryrefslogtreecommitdiff
path: root/ext/ctype
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-12-21 11:43:24 +0000
committerAntony Dovgal <tony2001@php.net>2005-12-21 11:43:24 +0000
commit632e5716429b0cb7324fd13a0b2d933ebae76a3b (patch)
treef3b2b6e99a4d1a78a97413ee78a73adb07d46bdc /ext/ctype
parent3231899d7110d7382a56a3b8be4e204d9a0db64d (diff)
downloadphp-git-632e5716429b0cb7324fd13a0b2d933ebae76a3b.tar.gz
MFB: add missing skipif conditions, fix existing ones
add one missing test
Diffstat (limited to 'ext/ctype')
-rw-r--r--ext/ctype/tests/bug25745.phpt2
-rw-r--r--ext/ctype/tests/bug34645.phpt13
2 files changed, 15 insertions, 0 deletions
diff --git a/ext/ctype/tests/bug25745.phpt b/ext/ctype/tests/bug25745.phpt
index 1d0ae0da7e..74320a865c 100644
--- a/ext/ctype/tests/bug25745.phpt
+++ b/ext/ctype/tests/bug25745.phpt
@@ -1,5 +1,7 @@
--TEST--
Bug #25745 (ctype functions fail with non-ascii characters)
+--SKIPIF--
+<?php if (!extension_loaded("ctype")) print "skip"; ?>
--FILE--
<?php
$funcs = array(
diff --git a/ext/ctype/tests/bug34645.phpt b/ext/ctype/tests/bug34645.phpt
new file mode 100644
index 0000000000..8c8e260c28
--- /dev/null
+++ b/ext/ctype/tests/bug34645.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Bug #34645 (ctype corrupts memory when validating large numbers)
+--SKIPIF--
+<?php if (!extension_loaded("ctype")) print "skip"; ?>
+--FILE--
+<?php
+$id = 394829384;
+var_dump(ctype_digit($id));
+var_dump($id);
+?>
+--EXPECT--
+bool(true)
+int(394829384)