mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
ed64949d12
Fixes GH-13145 Closes GH-13148
17 lines
289 B
PHP
17 lines
289 B
PHP
--TEST--
|
|
GH-13145: strtok() misoptimization
|
|
--FILE--
|
|
<?php
|
|
$tok = strtok("This is\tan example\nstring", " \n\t");
|
|
while ($tok !== false) {
|
|
var_dump($tok);
|
|
$tok = strtok(" \n\t");
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
string(4) "This"
|
|
string(2) "is"
|
|
string(2) "an"
|
|
string(7) "example"
|
|
string(6) "string"
|