Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
compare: 74ebda4694
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Apr 30, 2012
@chezmo chezmo prevent storing of messages if not defined in _bl_messages_types ffcc654
Commits on May 06, 2012
@jordifreek Merge pull request #1 from chezmo/master
evaluate _bl_messages_types before storing messages
74ebda4
Showing with 4 additions and 1 deletion.
  1. +4 −1 phpbuglost.php
View
5 phpbuglost.php
@@ -554,7 +554,10 @@ function bl_format_time($time) {
* @return void
*/
function bl_msg($msg, $file, $line, $type = 'user') {
- $format_msg = $msg;
+ // don't fill memory if we don't need it later
+ if (strpos(_bl_messages_types,$type)==false) return false;
+
+ $format_msg = $msg;
if (_bl_create_times) {
bl_time('Log missage '.substr($msg, 0, 30)).'...';

No commit comments for this range

Something went wrong with that request. Please try again.