Feed von
Beiträge
Kommentare

Tag Archiv 'error'

Valid Syntax errors: Part 1

It took me about an hour to spot a strange behaviour in my PHP skript:
Have a look at this code:
$foo = array ( ‘a’, ‘b’, ‘c’ );
foreach ( $foo as $bar );
echo $bar . "\n";
// Expected Output:
// a
// b
// c
// Actual Output:
// c

What happened?
Would I have used phpcs it would have [...]

Lese den ganzen Artikel »

unserialize values

Last week I had the problem, that – due to a wrong database-entry – a serialized value got scrambled. And due to that (and some missconfiguration of the server) the application broke. Instead of a search result the user simply got an error message about not being able to unserialize the value due to an [...]

Lese den ganzen Artikel »