mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
218a93b898
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
23 lines
388 B
PHP
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)
|