]> granicus.if.org Git - php/commit
@- Fix behaviour of strtok. Bug 13866 (jmoore)
authorJames Moore <jmoore@php.net>
Fri, 2 Nov 2001 19:19:24 +0000 (19:19 +0000)
committerJames Moore <jmoore@php.net>
Fri, 2 Nov 2001 19:19:24 +0000 (19:19 +0000)
commitc8896a38aea3b220406d9355851ff9c92d9da57c
treef4a259cf1dcd449c3353cd752fe2127e277ccfcf
parent288871505bcb1be190d21ba79a5be95f96d1a70a
@- Fix behaviour of strtok. Bug 13866 (jmoore)
# I have brought the behaviour of strtok into line with how the
# libc strtok's behave. currently given
# <string1><token><string2><token><token>string>
# three recursive calls to strtok returns <string1>. <string2>, <token><string3>
# it now returns <string1>, <string2>, <string3>. (there was some
# debate in #php.bugs if it should return <string1>, <string2>, false, <string3>
# but php's strtok now behaves the same way as the libc version.
ext/standard/string.c