/hphp/test/zend/good/ext/standard/tests/file/bug39538.php
PHP | 11 lines | 10 code | 1 blank | 0 comment | 0 complexity | e4a0b3e55f2c6e1e2ea67c0c4a3e13cc MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?php
- $content = array("\"\nthis is an test\", \"next data\", \"p\narsed\"","\"\r\nthis is an test\", \"next data\", \"p\r\narsed\"","\"\n\rthis is an test\", \"next data\", \"p\n\rarsed\"");
- $file = dirname(__FILE__) . "/bug39538.csv";
- @unlink($file);
- foreach ($content as $v) {
- file_put_contents($file, $v);
- print_r (fgetcsv(fopen($file, "r"), filesize($file)));
- }
- @unlink($file);
- ?>