Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #74041: substr_count with length=0 broken --FILE-- <?php var_dump(substr_cou..

Decoded Output download

--TEST--
Bug #74041: substr_count with length=0 broken
--FILE--
<?php

var_dump(substr_count("aaa", "a", 0, 0));
var_dump(substr_count("", "a", 0, 0));

?>
--EXPECT--
int(0)
int(0)

Did this file decode correctly?

Original Code

--TEST--
Bug #74041: substr_count with length=0 broken
--FILE--
<?php

var_dump(substr_count("aaa", "a", 0, 0));
var_dump(substr_count("", "a", 0, 0));

?>
--EXPECT--
int(0)
int(0)

Function Calls

substr_count 1

Variables

None

Stats

MD5 d6682785b3613c2a4274d58d32423f20
Eval Count 0
Decode Time 89 ms