- Implemented FR #41884 (ReflectionClass::getDefaultProperties() does not handle
static attributes). (Tony)
+- Fixed "Floating point exception" inside wordwrap(). (Mattias Bengtsson,
+ Ilia)
- Fixed crash in OpenSSL extension because of non-string passphrase. (Dmitry)
- Fixed var_export() to use the new H modifier so that it can generate
parseable PHP code for floats, independent of the locale. (Derick)
RETURN_EMPTY_STRING();
}
+ if (breakcharlen == 0) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Break string cannot be empty");
+ RETURN_FALSE;
+ }
+
if (linelength == 0 && docut) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't force cut when width is zero.");
RETURN_FALSE;
"123|==1234567890|==123" === wordwrap("123 1234567890 123", 10, "|==", 1)
+FALSE === @wordwrap(chr(0), 0, "")
+
TESTS;
include(dirname(__FILE__) . '/../../../../tests/quicktester.inc');