mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
PHP_OS_FAMILY never has the value WIN, for Windows platforms it is the string "Windows". As such, this test was never executed. Fix this.
17 lines
290 B
PHP
17 lines
290 B
PHP
--TEST--
|
|
Bug #38579 (include_once() may include the same file twice)
|
|
--SKIPIF--
|
|
<?php
|
|
if(PHP_OS_FAMILY !== "Windows") {
|
|
die('skip only for Windows');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$file = __DIR__."/bug38579.inc";
|
|
include_once(strtolower($file));
|
|
include_once(strtoupper($file));
|
|
?>
|
|
--EXPECT--
|
|
ok
|