Note that there are some explanatory texts on larger screens.

plurals
  1. PORandomly missing html brackets, swelling memory usage
    primarykey
    data
    text
    <p>I'm running Windows 7 with WAMP -- PHP 5.3.8 and Apache 2.2.21 on my laptop. I'm also using APC. Just last night and today I've noticed some very strange behavior that I'm trying to figure out. </p> <p>First, there are randomly missing html "&lt;" angle brackets missing in the generated page. It seems to be coming from tags. The tags are returned from a very basic 5 line function. I've checked it many times, and it shouldn't be producing a missing bracket.</p> <p>Even more strange is that it only does it randomly, and it hasn't yet been the same html tag twice. I've been reloading and running the html code through the W3C validator without making any changes to the code and can't make it happen twice in a row.</p> <p>The second thing is that this morning memory_get_peak_usage() reported that my scripts were using around 25MB each, which is far from ordinary. I restarted WAMP, and they went back to using 1-1.5MB each. </p> <p>I don't know if these two occurrences are related. Has anyone seen this?</p> <p>EDIT: I forgot to mention, but its worth noting that it isn't the same PHP function producing the weird tags. There are a couple of different ones for different data, but all basically the same function.</p> <p>2nd Edit: Here's the most recent functions where it happened:</p> <pre><code>function ampm_tags($value) { if ($value == 1) { return ' &lt;option&gt;&lt;/option&gt; &lt;option value="1" selected="selected"&gt;AM&lt;/option&gt; &lt;option value="2"&gt;PM&lt;/option&gt;'; } elseif ($value == 2) { return ' &lt;option&gt;&lt;/option&gt; &lt;option value="1"&gt;AM&lt;/option&gt; &lt;option value="2" selected="selected"&gt;PM&lt;/option&gt;'; } else { return ' &lt;option&gt;&lt;/option&gt; &lt;option value="1"&gt;AM&lt;/option&gt; &lt;option value="2"&gt;PM&lt;/option&gt;'; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload