diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2002-11-06 15:14:58 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2002-11-06 15:14:58 +0000 |
commit | 67890576971ec90b45f2214a652364fc42f55b52 (patch) | |
tree | b8b6423d6a010ee445e78765f95d13cda51ae502 /ext/standard/tests/strings/htmlentities04.phpt | |
parent | 41bd9b374668efcd07b1e316a56e642bc8c4ccf8 (diff) | |
download | php-git-67890576971ec90b45f2214a652364fc42f55b52.tar.gz |
Oops, preg_match() returns integer value, not boolean.
Diffstat (limited to 'ext/standard/tests/strings/htmlentities04.phpt')
-rw-r--r-- | ext/standard/tests/strings/htmlentities04.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/tests/strings/htmlentities04.phpt b/ext/standard/tests/strings/htmlentities04.phpt index db27fb415a..6e551338b6 100644 --- a/ext/standard/tests/strings/htmlentities04.phpt +++ b/ext/standard/tests/strings/htmlentities04.phpt @@ -3,7 +3,7 @@ htmlentities() test 4 (setlocale / ja_JP.EUC-JP) --SKIPIF-- <?php $result = (bool)setlocale(LC_CTYPE, "ja_JP.EUC-JP", "ja_JP.eucJP"); -if (!$result || preg_match('/EUC[^a-zA-Z]*JP/i', setlocale(LC_CTYPE, 0)) === false) { +if (!$result || preg_match('/EUC[^a-zA-Z]*JP/i', setlocale(LC_CTYPE, 0)) == 0) { die("skip setlocale() failed\n"); } ?> |