Annotation of embedaddon/php/ext/standard/tests/strings/strlen_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test strlen() function : basic functionality
! 3: --FILE--
! 4: <?php
! 5:
! 6: /* Prototype : int strlen ( string $string )
! 7: * Description: Get string length
! 8: * Source code: ext/standard/string.c
! 9: */
! 10:
! 11: echo "*** Testing strlen() : basic functionality ***\n";
! 12: var_dump(strlen("abcdef"));
! 13: var_dump(strlen(" ab de "));
! 14: var_dump(strlen(""));
! 15: var_dump(strlen("\x90\x91\x00\x93\x94\x90\x91\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"));
! 16: ?>
! 17: ===DONE===
! 18: --EXPECTF--
! 19: *** Testing strlen() : basic functionality ***
! 20: int(6)
! 21: int(7)
! 22: int(0)
! 23: int(18)
! 24: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>