Annotation of embedaddon/php/ext/standard/tests/file/file_exists_variation1.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test file_exists() function : usage variations
! 3: --CREDITS--
! 4: Dave Kelsey <d_kelsey@uk.ibm.com>
! 5: --FILE--
! 6: <?php
! 7: /* Prototype : proto bool file_exists(string filename)
! 8: * Description: Returns true if filename exists
! 9: * Source code: ext/standard/filestat.c
! 10: * Alias to functions:
! 11: */
! 12:
! 13: echo "*** Testing file_exists() : usage variations ***\n";
! 14:
! 15: var_dump(file_exists(NULL));
! 16: var_dump(file_exists(false));
! 17: var_dump(file_exists(''));
! 18: var_dump(file_exists(' '));
! 19: var_dump(file_exists('|'));
! 20: echo "Done";
! 21: ?>
! 22:
! 23: --EXPECTF--
! 24: *** Testing file_exists() : usage variations ***
! 25: bool(false)
! 26: bool(false)
! 27: bool(false)
! 28: bool(false)
! 29: bool(false)
! 30: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>