#phpsadness search results

"Return value of add() must be an instance of *integer*, *integer* returned" #phpsadness #php #wtf

aliborhani1's tweet image. "Return value of add() must be an instance of *integer*, *integer* returned" 
#phpsadness #php #wtf

@ericwastl phpsadness.com/sad/50 still getting segfault for any deep recursion as of PHP 5.6.12 #php #phpsadness

EvgenyOrekhov's tweet image. @ericwastl phpsadness.com/sad/50 still getting segfault for any deep recursion as of PHP 5.6.12
#php #phpsadness

This is how some people fix #phpmd "Avoid unused parameters" alerts #php #phpsadness #wtf #fail

damiengavard's tweet image. This is how some people fix #phpmd "Avoid unused parameters" alerts #php #phpsadness #wtf #fail

"This function opens a magic database […]" o.O #phpsadness


"praise the lord" he yelled, "$_REQUEST is still mutable". And he was never seen again. #phpsadness


TIL: method names in #php are *not* case sensitive. WAT! #phpsadness


php -r 'var_dump(TRUE == "a"); var_dump("a" == 0); var_dump(TRUE == 0);' bool(true) bool(true) bool(false) #phpsadness


One of my biggest personal #PhpSadness points seems to be going away in 7.4. While I prefer something more tangible than a NOTICE, it's sufficient to detect the problem from an error handler. github.com/php/php-src/pu…


#phpsadness var_dump(array_keys(array_merge(array("123"=>"test"),array("foo"=>"bar"))));


“PHP has a "feature" wherein if you add ?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 to the URL ofa script it returns the PHP logo” #phpsadness


when running 3v4l.org/7gufL in #PHPUnit, Bar::__destruct() never gets called, causer by the referenced closure… #phpsadness


E_ALL doesn't actually mean "E_ALL"; it means E_ACTUALLY_ALL & ~E_STRICT. Shouldn't it be named E_ALMOST_ALL instead? #phpsadness


#PHP Why does uasort() suck so bad? It's obvious that it should take a field to sort by instead of needing precise callbacks. #phpsadness


One more PHP sad issue - fucked up "empty" function - codepad.org/JKBk9Hjv #phpsadness


Only 1659 lines left of this "controller" that contains 100 actions driven by a giant switch statement #phpsadness #refactoring


Is #phpsadness still a thing? 🙃


One of my biggest personal #PhpSadness points seems to be going away in 7.4. While I prefer something more tangible than a NOTICE, it's sufficient to detect the problem from an error handler. github.com/php/php-src/pu…


[1, 2] + [3, 4, 5] === [1, 2, 5] should probably evaluate to false, because of common sense and so that we can keep our sanity. Unless of course it's PHP, in which case SCREW YOU, SCREW YOUR SANITY, SCREW EVERYTHING! #phpsadness @ericwastl


Let's sit on the feature for 18-24 months now, just to ensure feature-empty 7.3 isn't postponed by 14 days. #PHPSadness


TIL: method names in #php are *not* case sensitive. WAT! #phpsadness


when running 3v4l.org/7gufL in #PHPUnit, Bar::__destruct() never gets called, causer by the referenced closure… #phpsadness


@ericwastl returning false for an error when false is a valid return: unserialize(serialize(false)) === unserialize('#phpsadness')


I said it before it was a thing. declare(strict_types=1) is a horrible idea. #PHP #PHPSadness


hello, __toString() exception, my old friend. #php #phpsadness #phpquirks


pdo statements can return false, even if exceptions are enabled. particularly if you execute with too many arguments. #php #phpsadness #wtf


#php would be so much easier if php.net/stream_get_met… accepted a #splfileobject as a possible argument #phpsadness


@ericwastl #phpsadness filter_var with FILTER_VALIDATE_EMAIL marks perfectly valid emails as [email protected] as invalid.


"This function opens a magic database […]" o.O #phpsadness


@ericwastl Did you know that PHP's sprintf rounds values? sprintf('%.2f', 123.495) -> 123.5, not 123.49... #PHPSadness


This is how some people fix #phpmd "Avoid unused parameters" alerts #php #phpsadness #wtf #fail

damiengavard's tweet image. This is how some people fix #phpmd "Avoid unused parameters" alerts #php #phpsadness #wtf #fail

"Return value of add() must be an instance of *integer*, *integer* returned" #phpsadness #php #wtf

aliborhani1's tweet image. "Return value of add() must be an instance of *integer*, *integer* returned" 
#phpsadness #php #wtf

@ericwastl phpsadness.com/sad/50 still getting segfault for any deep recursion as of PHP 5.6.12 #php #phpsadness

EvgenyOrekhov's tweet image. @ericwastl phpsadness.com/sad/50 still getting segfault for any deep recursion as of PHP 5.6.12
#php #phpsadness

Loading...

Something went wrong.


Something went wrong.


United States Trends