Skip to content

Instantly share code, notes, and snippets.

@KentaKomai
Created April 20, 2014 08:53
Show Gist options
  • Save KentaKomai/11109058 to your computer and use it in GitHub Desktop.
Save KentaKomai/11109058 to your computer and use it in GitHub Desktop.
type juggling
<?php
error_reporting(false);
$input = "0";
if( $input == "0e94323" ){
print("$input == 0e94323\n");
}
if( $input == "00e19384" ){
print("$input == 00e19384\n");
}
$input = "1";
$input = "111";
$input = "111a";
if ($input < "30") {
print("$input < 30\n");
print((int)$input."\n");
}
$password[] = "aaaa";
$secret = "secret";
if( strcasecmp($password, "secret") == 0){
print("passed\n");
}else{
print("can't passed\n");
}
if( strcasecmp(array(), "secret") == 0){
print("passed\n");
}else{
print("can't passed\n");
}
if( strcasecmp(NULL, "secret") == 0){
print("passed\n");
}else{
print("can't passed\n");
}
if( strcasecmp(0, "secret") == 0){
print("passed\n");
}else{
print("can't passed\n");
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment