summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/wordwrap.phpt
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2007-07-23 11:47:44 +0000
committerJani Taskinen <jani@php.net>2007-07-23 11:47:44 +0000
commit7bfd857fa1e762c4ac5c3abd3eba4c95406af147 (patch)
tree48c63c5b19bd6008e6b7982afc86b1837d888a05 /ext/standard/tests/strings/wordwrap.phpt
parent6b7c17e222610a60d6e806342ab3150bc709aa52 (diff)
downloadphp-git-7bfd857fa1e762c4ac5c3abd3eba4c95406af147.tar.gz
MFB: Fixed "Floating point exception" inside wordwrap()
Diffstat (limited to 'ext/standard/tests/strings/wordwrap.phpt')
-rw-r--r--ext/standard/tests/strings/wordwrap.phpt2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/tests/strings/wordwrap.phpt b/ext/standard/tests/strings/wordwrap.phpt
index 66104e3c77..c1f3b05bda 100644
--- a/ext/standard/tests/strings/wordwrap.phpt
+++ b/ext/standard/tests/strings/wordwrap.phpt
@@ -27,6 +27,8 @@ $tests = <<<TESTS
"123|==1234567890|==123" === wordwrap("123 1234567890 123", 10, "|==", 1)
+FALSE === @wordwrap(chr(0), 0, "")
+
TESTS;
include(dirname(__FILE__) . '/../../../../tests/quicktester.inc');