/hphp/test/spec/tests/types/resource/resource_from_fopen.php
PHP | 21 lines | 11 code | 5 blank | 5 comment | 0 complexity | f07e0bba42883432132488b2efcafada 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
- /*
- +-------------------------------------------------------------+
- | Copyright (c) 2015 Facebook, Inc. (http://www.facebook.com) |
- +-------------------------------------------------------------+
- */
- error_reporting(-1);
- $infile = fopen("Testfile.txt", 'r');
- var_dump($infile);
- echo "\n";
- print_r($infile);
- echo "\n";
- $infile = fopen("NoSuchFile.txt", 'r');
- var_dump($infile);
- $infile = @fopen("NoSuchFile.txt", 'r');
- var_dump($infile);