note 38937 added to function.strtok

From: Date: Mon, 12 Jan 2004 22:36:46 +0000
Subject: note 38937 added to function.strtok
Groups: php.notes 
Request: Send a blank email to php-notes+get-63370@lists.php.net to get a copy of this message
It is even worse. After three days I found out that one function that uses strtok was indirectly calling some other module that was also using strtok. Calling the inner function ended the outer strtok immediately. THIS FUNCTION REALLY SUCKS! A good implementation would use a handle or something. In more complex projects it is a wise decision not to use strtok at all! The main problem is that this IS NOT A BUG but an erroneous concept. Torsten ---- Manual Page -- http://www.php.net/manual/en/function.strtok.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38937 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38937&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38937&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63370) next »