#44616 [Opn->Bgs]: strtok() wrong result

From: Date: Wed, 02 Apr 2008 16:35:35 +0000
Subject: #44616 [Opn->Bgs]: strtok() wrong result
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-123883@lists.php.net to get a copy of this message
ID: 44616 Updated by: felipe@php.net Reported By: weberio at mail dot ru -Status: Open +Status: Bogus Bug Type: Strings related Operating System: WIN XP PHP Version: 5.2.5 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Says the documentation: "The behavior when an empty part was found changed with PHP 4.1.0." Previous Comments: ------------------------------------------------------------------------ [2008-04-02 16:13:24] weberio at mail dot ru Description: ------------ strtok("\t\n","\t") - return one char (char code 10), but not null Reproduce code: --------------- <?=ord(strtok("\t\n","\t"))?> Expected result: ---------------- 0 Actual result: -------------- 10 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44616&edit=1

« previous php.bugs (#123883) next »