|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-18 04:34 UTC] derick@php.net
[2002-07-19 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
First of all, I'm running PHP 4.1.2 as a script with Apache 1.3 on Windows XP Pro. I'm only using gd2 and gettext as modules. To illustrate what is happening to me right now, suppose I got an array $authors from a database, each containing another array with two key-value pairs (aid, author.) Now, in order to print it out, I use: function listArticleAuthors() { global $authors; if ($authors) foreach($authors as $a) echo "<li><a href='author.php?id=" . $a[aid] . "'>" . $a[name] . "</a></li>"; return; } I have three or four other functions somewhat similar to this one, which iterate through other arrays. The arrays are all very small (no more than half a dozen elements each.) Now, there's no problem when I run the code below *outside* the function. There is also no problem when I'm calling only a couple of these functions. But when I call all the functions, or the same function more than once, the PHP process inexplicably goes zombie and the page stops loading. It's only when I kill the process using Task Manager that the page resumes loading as normal. There's no lost output, there is no system slowdown. I don't think I'm pushing it too hard: the PHP process just stays running using very little resources (0% processor, 2 or 3 megs.) Any idea about what could be happening? Cheers and thanks! L.