- header: documentation ( source)
- define: documentation ( source)
<?php
header('Content-Type:text/plain');
defined("PHP_EOL") ?: define("PHP_EOL","\n");
// Trick PHP and force convertion
$_POST['loginserver'] = 0;
if ($_POST['loginserver'] == 'login'){
echo "Type conversion bug", PHP_EOL; // This should not print
} else{
echo "Ok", PHP_EOL;
}