php-src/ext/intl/tests/gh10647.phpt
Peter Kokot 218a93b898 Use EXTENSIONS instead of SKIPIF sections in *.phpt
This also fixes skipped tests due to different naming "zend-test"
instead of "zend_test" and "PDO" instead of "pdo":

- ext/dom/tests/libxml_global_state_entity_loader_bypass.phpt
- ext/simplexml/tests/libxml_global_state_entity_loader_bypass.phpt
- ext/xmlreader/tests/libxml_global_state_entity_loader_bypass.phpt
- ext/zend_test/tests/observer_sqlite_create_function.phpt

EXTENSIONS section is used for the Windows build to load the non-static
extensions.

Closes GH-13276
2024-01-31 11:18:21 +01:00

23 lines
388 B
PHP

--TEST--
Bug GH-10647 (Spoofchecker::isSuspicious $errorCode always null)
--EXTENSIONS--
intl
--FILE--
<?php
$error = 123;
var_dump($error);
$x = new Spoofchecker();
var_dump($x->isSuspicious("\u{041F}aypal.com", $error));
var_dump($error);
var_dump($x->areConfusable('google.com', 'goog1e.com', $error));
var_dump($error);
?>
--EXPECTF--
int(123)
bool(true)
int(%d)
bool(true)
int(%d)