Date: 10/31/00
- Next message: joey <email protected>: "[PHP-DEV] PHP 4.0 Bug #7560 Updated: strtok or while-loop never returns"
- Previous message: Joey Smith: "Re: [PHP-DEV] PHP 4.0 Bug #7554: Exclusive flock() breaks client/servercommunication"
- Next in thread: joey <email protected>: "[PHP-DEV] PHP 4.0 Bug #7560 Updated: strtok or while-loop never returns"
- Maybe reply: joey <email protected>: "[PHP-DEV] PHP 4.0 Bug #7560 Updated: strtok or while-loop never returns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 7560
User Update by: lrhazi <email protected>
Status: Open
Bug Type: Strings related
Description: strtok or while-loop never returns
You might want to just ignor this, although I d like
to know if you actually would see it as bug...
the problem is that the second call to strtok() is missing
from the body of the while loop!
but the consequence was total hung of my server!
couldnt even get a chance to go to a terminal
or even the console to kill apache or do anything
the only way out is for the client to push the stop
button on his navigator!
Mohamed~
Previous Comments:
---------------------------------------------------------------------------
[2000-10-31 21:35:17] lrhazi <email protected>
function complete_email_addresses($ilist,$suffix){
my_info("Entered compelte with [$ilist] and [$suffix]");
if(($ilist == "")||($suffix == "")){
my_info("leaving complete too early!");
return $ilist;
}
$name1="";$result="";
$name = strtok($ilist,",");
while($name) {
my_info("inside loop with [$name]");
$name1 .=$suffix;
$result .= $name1.",";
}
my_info("ilist completed : $result");
return $result;
}
I call this function with ("toto"," <email protected>") and it never returns!
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7560
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: joey <email protected>: "[PHP-DEV] PHP 4.0 Bug #7560 Updated: strtok or while-loop never returns"
- Previous message: Joey Smith: "Re: [PHP-DEV] PHP 4.0 Bug #7554: Exclusive flock() breaks client/servercommunication"
- Next in thread: joey <email protected>: "[PHP-DEV] PHP 4.0 Bug #7560 Updated: strtok or while-loop never returns"
- Maybe reply: joey <email protected>: "[PHP-DEV] PHP 4.0 Bug #7560 Updated: strtok or while-loop never returns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

