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