subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | barubary | hk1ojtv | <|soss|><|sot|>Get class: Just a lol<|eot|><|sost|>Consider this example:
class A { }
class Foo {
public static function bar($x) {
echo get_class($x), "\n";
}
}
Foo::bar(new A());
Foo::bar(null);
Its just broken.<|eost|><|sor|>> Its just broken.
Broken how? What happens when you run that code? What di... | 5 |
lolphp | Takeoded | ishbfn | <|sols|><|sot|>ArrayAccess seems broken<|eot|><|sol|>https://3v4l.org/Woc0R<|eol|><|eols|><|endoftext|> | 0 |
lolphp | funtek | g57rkgb | <|sols|><|sot|>ArrayAccess seems broken<|eot|><|sol|>https://3v4l.org/Woc0R<|eol|><|sor|>ArrayAccess is for... array access. Accesing using []. That does not mean you can use it anywhere where array is expected. It's unexpected, yes, but perfectly logical and the error is clearly explaining what is going on.<|eor|><|eo... | 22 |
lolphp | przemo_li | g57rsg7 | <|sols|><|sot|>ArrayAccess seems broken<|eot|><|sol|>https://3v4l.org/Woc0R<|eol|><|sor|>So we do lol because language supported something in version X, deprecated it in X + 1, and abandoned it in X + 2?
???
​
Here is offical doc for ArrayAccess:
> Interface to provide accessing objects as arrays.
That... | 9 |
lolphp | jesseschalken | g58e7tj | <|sols|><|sot|>ArrayAccess seems broken<|eot|><|sol|>https://3v4l.org/Woc0R<|eol|><|sor|>ArrayAccess is for... array access. Accesing using []. That does not mean you can use it anywhere where array is expected. It's unexpected, yes, but perfectly logical and the error is clearly explaining what is going on.<|eor|><|so... | 8 |
lolphp | przemo_li | g57sb0i | <|sols|><|sot|>ArrayAccess seems broken<|eot|><|sol|>https://3v4l.org/Woc0R<|eol|><|sor|>So we do lol because language supported something in version X, deprecated it in X + 1, and abandoned it in X + 2?
???
​
Here is offical doc for ArrayAccess:
> Interface to provide accessing objects as arrays.
That... | 6 |
lolphp | youstolemyname | g57u4m6 | <|sols|><|sot|>ArrayAccess seems broken<|eot|><|sol|>https://3v4l.org/Woc0R<|eol|><|sor|>https://3v4l.org/CUTpa<|eor|><|eols|><|endoftext|> | 5 |
lolphp | feketegy | cljm3p | <|sols|><|sot|>$GLOBALS contains GLOBALS because GLOBALS is a global...<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/clj570/what_is_the_logic_behind_that_globals_has_a/<|eol|><|eols|><|endoftext|> | 0 |
lolphp | mort96 | evvqlpf | <|sols|><|sot|>$GLOBALS contains GLOBALS because GLOBALS is a global...<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/clj570/what_is_the_logic_behind_that_globals_has_a/<|eol|><|sor|>I don't see how this is lolphp? If you're going to have a global variable which represents all the global variables, it better conta... | 40 |
lolphp | smog_alado | evvs58m | <|sols|><|sot|>$GLOBALS contains GLOBALS because GLOBALS is a global...<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/clj570/what_is_the_logic_behind_that_globals_has_a/<|eol|><|sor|>I don't see how this is lolphp? If you're going to have a global variable which represents all the global variables, it better conta... | 24 |
lolphp | Almamu | evx3gd2 | <|sols|><|sot|>$GLOBALS contains GLOBALS because GLOBALS is a global...<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/clj570/what_is_the_logic_behind_that_globals_has_a/<|eol|><|sor|>I don't see how this is lolphp? If you're going to have a global variable which represents all the global variables, it better conta... | 6 |
lolphp | Adybo123 | evwreat | <|sols|><|sot|>$GLOBALS contains GLOBALS because GLOBALS is a global...<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/clj570/what_is_the_logic_behind_that_globals_has_a/<|eol|><|sor|>I don't see how this is lolphp? If you're going to have a global variable which represents all the global variables, it better conta... | 5 |
lolphp | Garegin16 | o36cno | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 0 |
lolphp | IdealBlueMan | h2a9yq4 | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 45 |
lolphp | Max-P | h2artzd | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 36 |
lolphp | cq73 | h2bb35s | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 12 |
lolphp | chucker23n | h2bba8o | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 12 |
lolphp | chucker23n | h2b5mnw | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 11 |
lolphp | Orgalorgg | h2b070h | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 11 |
lolphp | chucker23n | h2b8g02 | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 11 |
lolphp | cfreak2399 | h2bzdo5 | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 10 |
lolphp | cq73 | h2bbii8 | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 10 |
lolphp | captain_obvious_here | h2chye2 | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 7 |
lolphp | IdealBlueMan | h2cwfb3 | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 7 |
lolphp | cq73 | h2j95kv | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 7 |
lolphp | picklemanjaro | h2cm85q | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 6 |
lolphp | squiggleslash | h2bjh6r | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 6 |
lolphp | SaltineAmerican_1970 | h2bvp4c | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 6 |
lolphp | hexmode | h52llq6 | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 5 |
lolphp | savageronald | h2dz4sg | <|soss|><|sot|>Why was PHP invented in the first place?<|eot|><|sost|>The standard story is that he needed a visitor counter. Why not just do it with Perl or Python? Why invent another language?
Im not saying that PHP is bad. But what value did it provide other than that it became popular so its easy to deploy. Thats ... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.