summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug65947.phpt
blob: 2656a1b7f1cb5941418e7cf3ab94137ccfebc835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #65947 (basename is no more working after fgetcsv in certain situation)
--SKIPIF--
<?php if (!PHP_ZTS) { print "skip only for zts build"; }
--FILE--
<?php
$filename = 'test.toto';
// é in ISO-8859-1
$csv = base64_decode('6Q==');
$adata = str_getcsv($csv,";");
$b2 = basename($filename);
if ($filename != $b2) 
	print "BUG";
else 
	print "OKEY";
--EXPECT--	
OKEY