note 38937 deleted from function.strtok by tomsommer

From: Date: Mon, 12 Jan 2004 22:51:52 +0000
Subject: note 38937 deleted from function.strtok by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-63372@lists.php.net to get a copy of this message
Note Submitter: torsten@dargers.de ---- 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

« previous php.notes (#63372) next »