Skip to content

Commit e251c0a

Browse files
committed
== bug
1 parent 5d1d58f commit e251c0a

File tree

4 files changed

+6
-28
lines changed

4 files changed

+6
-28
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/test/*.log

src/SimpleDebug.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function simple_log()
5656
$args = simpledebug_get_args_info($bt[0]);
5757
$file = $bt[0]['args'][0];
5858
foreach ($args as $argName => $arg) {
59-
if ($arg == $file) {
59+
if ($arg === $file) {
6060
unset($args[$argName]);
6161
}
6262
}

test/some.log

-27
This file was deleted.

test/test.php

+4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010

1111
$b = 'outfunc';
1212
$ccc = array(1,2,3);
13+
$d = 0;
1314

15+
simple_dump($aa, $b, $ccc, $d, '');
16+
simple_log('./test/some.log', $aa, $b, $ccc, $d, '');
17+
die;
1418
(simple_dump(implode(',', ((($ccc)))), 'xxxx', $b, explode('u', $b)));
1519

1620
(((((((((simple_dump((((((trim((implode(',', $ccc) . 'xx()(())()(((((())(x')))))))))))))))));

0 commit comments

Comments
 (0)