PageRenderTime 50ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/good/ext/standard/tests/file/bug39538.php

http://github.com/facebook/hiphop-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
  1. <?php
  2. $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\"");
  3. $file = dirname(__FILE__) . "/bug39538.csv";
  4. @unlink($file);
  5. foreach ($content as $v) {
  6. file_put_contents($file, $v);
  7. print_r (fgetcsv(fopen($file, "r"), filesize($file)));
  8. }
  9. @unlink($file);
  10. ?>