Curt Zirzow wrote:
cat | realprogrammer | in_a_rush

if($p) {
  $bu = substr( $_GET['o'], 0, $p );
  $bup = substr( $_GET['o'], ++$p );
} else {
  $bu = $_GET['o'];
  $bup = '';
}

This is a real world example of how real programmer in a rush can introduce bugs. Original example did not modify $p (or $pos_params).


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to