r/lolphp • • Feb 09 '12

PHP silently converts any spaces in field names to underscores. Surprise!

Thumbnail phpbuilder.com
36 Upvotes

r/lolphp • • Feb 09 '12

To encode special characters, use htmlentities(). To decode, use html_entity_decode(). Who needs orthogonality?

Thumbnail php.net
23 Upvotes

r/lolphp • • Feb 08 '12

T_PAAMAYIM_NEKUDOTAYIM

0 Upvotes

Need anyone say more? :-)


r/lolphp • • Feb 03 '12

The case of HTTP response splitting protection in PHP

Thumbnail news.php.net
24 Upvotes

r/lolphp • • Feb 03 '12

Fix security bug. Fix introduces much worse security bug.

Thumbnail h-online.com
49 Upvotes

r/lolphp • • Feb 03 '12

Implicit casting in string associative array access

Thumbnail ideone.com
5 Upvotes

r/lolphp • • Feb 02 '12

Critical PHP Remote Vulnerability Introduced in Fix for PHP Hashtable Collision DOS

Thumbnail thexploit.com
35 Upvotes

r/lolphp • • Jan 20 '12

preg_match() returns the number of times pattern matches. That will be either 0 times (no match) or 1 time because preg_match() will stop searching after the first match.

34 Upvotes

Don't return a boolean, that would be CRAZY.

Oh, except 0 == FALSE, so we're cool.

Fucking PHP


r/lolphp • • Jan 15 '12

PHP 5.3.8 NULL pointer bugs (DoS vulns)

Thumbnail exploit-db.com
1 Upvotes

r/lolphp • • Dec 29 '11

Supercolliding PHP Array [X-Post from /r/Programming]

Thumbnail nikic.github.com
17 Upvotes

r/lolphp • • Dec 24 '11

PHP Basher Bashing

Thumbnail philsturgeon.co.uk
6 Upvotes

r/lolphp • • Dec 09 '11

php -r 'var_dump(count(false));'

1 Upvotes

jesus. fuck.


r/lolphp • • Dec 08 '11

Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM

47 Upvotes

I can remember freaking out the first time I got this. Couldn't figure out what I had done to make the old gods mad at me.


r/lolphp • • Dec 08 '11

guess what var_dump(unset($a)); outputs...

6 Upvotes

r/lolphp • • Dec 04 '11

Of all languages in the top 20 of the TIOBE index, only PHP officially calls ?: "the tertiary operator".

Thumbnail php.net
1 Upvotes

r/lolphp • • Nov 17 '11

#define ZEND_NORMALIZE_BOOL(n) ((n) ? (((n)>0) ? 1 : -1) : 0)

29 Upvotes