subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | cleeder | dzifx26 | <|soss|><|sot|>I thought we were past this<|eot|><|sost|> <?php
var_dump(array(0 => ':p1') == array(0 => 0)); // bool(true)
Ten years and this language is still finding ways to kick me in the nuts.
I mean, I get it. An array is equal if its keys and elements are equal. And `:p1` is, in the PHP sense, equal to ... | 15 |
lolphp | creativeMan | dzic1bs | <|soss|><|sot|>I thought we were past this<|eot|><|sost|> <?php
var_dump(array(0 => ':p1') == array(0 => 0)); // bool(true)
Ten years and this language is still finding ways to kick me in the nuts.
I mean, I get it. An array is equal if its keys and elements are equal. And `:p1` is, in the PHP sense, equal to ... | 10 |
lolphp | cleeder | dzifdv9 | <|soss|><|sot|>I thought we were past this<|eot|><|sost|> <?php
var_dump(array(0 => ':p1') == array(0 => 0)); // bool(true)
Ten years and this language is still finding ways to kick me in the nuts.
I mean, I get it. An array is equal if its keys and elements are equal. And `:p1` is, in the PHP sense, equal to ... | 9 |
lolphp | ryselis | dzo7qw3 | <|soss|><|sot|>I thought we were past this<|eot|><|sost|> <?php
var_dump(array(0 => ':p1') == array(0 => 0)); // bool(true)
Ten years and this language is still finding ways to kick me in the nuts.
I mean, I get it. An array is equal if its keys and elements are equal. And `:p1` is, in the PHP sense, equal to ... | 7 |
lolphp | SockPants | dziieek | <|soss|><|sot|>I thought we were past this<|eot|><|sost|> <?php
var_dump(array(0 => ':p1') == array(0 => 0)); // bool(true)
Ten years and this language is still finding ways to kick me in the nuts.
I mean, I get it. An array is equal if its keys and elements are equal. And `:p1` is, in the PHP sense, equal to ... | 6 |
lolphp | maweki | dzils66 | <|soss|><|sot|>I thought we were past this<|eot|><|sost|> <?php
var_dump(array(0 => ':p1') == array(0 => 0)); // bool(true)
Ten years and this language is still finding ways to kick me in the nuts.
I mean, I get it. An array is equal if its keys and elements are equal. And `:p1` is, in the PHP sense, equal to ... | 5 |
lolphp | cleeder | dzimd51 | <|soss|><|sot|>I thought we were past this<|eot|><|sost|> <?php
var_dump(array(0 => ':p1') == array(0 => 0)); // bool(true)
Ten years and this language is still finding ways to kick me in the nuts.
I mean, I get it. An array is equal if its keys and elements are equal. And `:p1` is, in the PHP sense, equal to ... | 5 |
lolphp | LongDistanceEjcltr | 8hn4vx | <|sols|><|sot|>`null["foo"] === null`in practice<|eot|><|sol|>https://3v4l.org/WYhto<|eol|><|eols|><|endoftext|> | 16 |
lolphp | mhaendler | dykzdw8 | <|sols|><|sot|>`null["foo"] === null`in practice<|eot|><|sol|>https://3v4l.org/WYhto<|eol|><|sor|> <?php
$intNumber = 1;
$stringNumber = '1';
var_dump(chr($intNumber[0] + 100));
var_dump(chr($stringNumber[0] + 100));
Thats totally understandable
You want to get access the first element / pointer ar... | 10 |
lolphp | LongDistanceEjcltr | dyl2ylj | <|sols|><|sot|>`null["foo"] === null`in practice<|eot|><|sol|>https://3v4l.org/WYhto<|eol|><|sor|> <?php
$intNumber = 1;
$stringNumber = '1';
var_dump(chr($intNumber[0] + 100));
var_dump(chr($stringNumber[0] + 100));
Thats totally understandable
You want to get access the first element / pointer ar... | 9 |
lolphp | Joniator | dyl0rzz | <|sols|><|sot|>`null["foo"] === null`in practice<|eot|><|sol|>https://3v4l.org/WYhto<|eol|><|sor|> <?php
$intNumber = 1;
$stringNumber = '1';
var_dump(chr($intNumber[0] + 100));
var_dump(chr($stringNumber[0] + 100));
Thats totally understandable
You want to get access the first element / pointer ar... | 6 |
lolphp | mikeputerbaugh | dylcduk | <|sols|><|sot|>`null["foo"] === null`in practice<|eot|><|sol|>https://3v4l.org/WYhto<|eol|><|sor|> <?php
$intNumber = 1;
$stringNumber = '1';
var_dump(chr($intNumber[0] + 100));
var_dump(chr($stringNumber[0] + 100));
Thats totally understandable
You want to get access the first element / pointer ar... | 5 |
lolphp | ErikkW77 | 6533gk | <|soss|><|sot|>PHP is finally getting closures!<|eot|><|sost|>Except that it is not.
Hello all. I'm new here and to reddit, but I always read you!
A friend that is more involved than me in the PHP world told me PHP would finally get closures.
($a, $b) => $a * $b
He was so excited until I made him notice that it... | 16 |
lolphp | ealf | dg7cb0n | <|soss|><|sot|>PHP is finally getting closures!<|eot|><|sost|>Except that it is not.
Hello all. I'm new here and to reddit, but I always read you!
A friend that is more involved than me in the PHP world told me PHP would finally get closures.
($a, $b) => $a * $b
He was so excited until I made him notice that it... | 45 |
lolphp | zvax | dg784pu | <|soss|><|sot|>PHP is finally getting closures!<|eot|><|sost|>Except that it is not.
Hello all. I'm new here and to reddit, but I always read you!
A friend that is more involved than me in the PHP world told me PHP would finally get closures.
($a, $b) => $a * $b
He was so excited until I made him notice that it... | 24 |
lolphp | iluuu | dg790ze | <|soss|><|sot|>PHP is finally getting closures!<|eot|><|sost|>Except that it is not.
Hello all. I'm new here and to reddit, but I always read you!
A friend that is more involved than me in the PHP world told me PHP would finally get closures.
($a, $b) => $a * $b
He was so excited until I made him notice that it... | 14 |
lolphp | jesseschalken | dg7cwz1 | <|soss|><|sot|>PHP is finally getting closures!<|eot|><|sost|>Except that it is not.
Hello all. I'm new here and to reddit, but I always read you!
A friend that is more involved than me in the PHP world told me PHP would finally get closures.
($a, $b) => $a * $b
He was so excited until I made him notice that it... | 13 |
lolphp | stumpychubbins | dg7oktx | <|soss|><|sot|>PHP is finally getting closures!<|eot|><|sost|>Except that it is not.
Hello all. I'm new here and to reddit, but I always read you!
A friend that is more involved than me in the PHP world told me PHP would finally get closures.
($a, $b) => $a * $b
He was so excited until I made him notice that it... | 12 |
lolphp | the_alias_of_andrea | dg7tjml | <|soss|><|sot|>PHP is finally getting closures!<|eot|><|sost|>Except that it is not.
Hello all. I'm new here and to reddit, but I always read you!
A friend that is more involved than me in the PHP world told me PHP would finally get closures.
($a, $b) => $a * $b
He was so excited until I made him notice that it... | 11 |
lolphp | maweki | dg77yqs | <|soss|><|sot|>PHP is finally getting closures!<|eot|><|sost|>Except that it is not.
Hello all. I'm new here and to reddit, but I always read you!
A friend that is more involved than me in the PHP world told me PHP would finally get closures.
($a, $b) => $a * $b
He was so excited until I made him notice that it... | 7 |
lolphp | gschroder | dg79bvf | <|soss|><|sot|>PHP is finally getting closures!<|eot|><|sost|>Except that it is not.
Hello all. I'm new here and to reddit, but I always read you!
A friend that is more involved than me in the PHP world told me PHP would finally get closures.
($a, $b) => $a * $b
He was so excited until I made him notice that it... | 7 |
lolphp | nayuki | 4u9td7 | <|sols|><|sot|>How we broke PHP, hacked Pornhub and earned $20,000 | Bug Bounties<|eot|><|sol|>https://www.evonide.com/how-we-broke-php-hacked-pornhub-and-earned-20000-dollar/<|eol|><|eols|><|endoftext|> | 17 |
lolphp | thallippoli | 2xw0ky | <|sols|><|sot|>Thread doesnt inherit parents working directory..<|eot|><|sol|>http://lokalhost.in/2015/03/bug-with-phps-pthreads-thread-doesnt-inherit-parents-working-directory/<|eol|><|eols|><|endoftext|> | 19 |
lolphp | thallippoli | cp3yej7 | <|sols|><|sot|>Thread doesnt inherit parents working directory..<|eot|><|sol|>http://lokalhost.in/2015/03/bug-with-phps-pthreads-thread-doesnt-inherit-parents-working-directory/<|eol|><|sor|>This is an extension. Is it an official extension from the official dev team of PHP?<|eor|><|soopr|>Are you asking if this is off... | 42 |
lolphp | thelordofcheese | cp3xwzk | <|sols|><|sot|>Thread doesnt inherit parents working directory..<|eot|><|sol|>http://lokalhost.in/2015/03/bug-with-phps-pthreads-thread-doesnt-inherit-parents-working-directory/<|eol|><|sor|>This is an extension. Is it an official extension from the official dev team of PHP?<|eor|><|eols|><|endoftext|> | 7 |
lolphp | thelordofcheese | cp3zbgn | <|sols|><|sot|>Thread doesnt inherit parents working directory..<|eot|><|sol|>http://lokalhost.in/2015/03/bug-with-phps-pthreads-thread-doesnt-inherit-parents-working-directory/<|eol|><|sor|>This is an extension. Is it an official extension from the official dev team of PHP?<|eor|><|soopr|>Are you asking if this is off... | 7 |
lolphp | stain_leeks | 2i2px3 | <|soss|><|sot|>Foreach reference<|eot|><|sost|>[http://3v4l.org/P1Omj](http://3v4l.org/P1Omj)
<?php
$arr = array('a', 'b');
foreach ($arr as &$a) {
var_dump($a);
}
foreach ($arr as $a) {
var_dump($a);
}
This probably has some explanation I'd love to l... | 17 |
lolphp | McGlockenshire | ckya8p8 | <|soss|><|sot|>Foreach reference<|eot|><|sost|>[http://3v4l.org/P1Omj](http://3v4l.org/P1Omj)
<?php
$arr = array('a', 'b');
foreach ($arr as &$a) {
var_dump($a);
}
foreach ($arr as $a) {
var_dump($a);
}
This probably has some explanation I'd love to l... | 29 |
lolphp | EvilTerran | ckydlym | <|soss|><|sot|>Foreach reference<|eot|><|sost|>[http://3v4l.org/P1Omj](http://3v4l.org/P1Omj)
<?php
$arr = array('a', 'b');
foreach ($arr as &$a) {
var_dump($a);
}
foreach ($arr as $a) {
var_dump($a);
}
This probably has some explanation I'd love to l... | 23 |
lolphp | stain_leeks | ckyajiq | <|soss|><|sot|>Foreach reference<|eot|><|sost|>[http://3v4l.org/P1Omj](http://3v4l.org/P1Omj)
<?php
$arr = array('a', 'b');
foreach ($arr as &$a) {
var_dump($a);
}
foreach ($arr as $a) {
var_dump($a);
}
This probably has some explanation I'd love to l... | 7 |
lolphp | bart2019 | ckz71kc | <|soss|><|sot|>Foreach reference<|eot|><|sost|>[http://3v4l.org/P1Omj](http://3v4l.org/P1Omj)
<?php
$arr = array('a', 'b');
foreach ($arr as &$a) {
var_dump($a);
}
foreach ($arr as $a) {
var_dump($a);
}
This probably has some explanation I'd love to l... | 5 |
lolphp | s0ckpuppet | yomzp | <|sols|><|sot|>PHP drops World domination from the TODO (xpost)<|eot|><|sol|>https://github.com/php/php-src/commit/a90170e6f803f283d6c8e4e8d6b7bd8b7bd011a4<|eol|><|eols|><|endoftext|> | 19 |
lolphp | vytah | c5xhhrn | <|sols|><|sot|>PHP drops World domination from the TODO (xpost)<|eot|><|sol|>https://github.com/php/php-src/commit/a90170e6f803f283d6c8e4e8d6b7bd8b7bd011a4<|eol|><|sor|>Bug description: World isn't dominated by PHP
Status: CLOSED WONTFIX<|eor|><|eols|><|endoftext|> | 16 |
lolphp | sloat | c5xifns | <|sols|><|sot|>PHP drops World domination from the TODO (xpost)<|eot|><|sol|>https://github.com/php/php-src/commit/a90170e6f803f283d6c8e4e8d6b7bd8b7bd011a4<|eol|><|sor|>Their world domination code had an XSS vulnerability in it.<|eor|><|eols|><|endoftext|> | 10 |
lolphp | merreborn | c5xrn4t | <|sols|><|sot|>PHP drops World domination from the TODO (xpost)<|eot|><|sol|>https://github.com/php/php-src/commit/a90170e6f803f283d6c8e4e8d6b7bd8b7bd011a4<|eol|><|sor|>Ugh. I hate seeing these sorts of pages on github where the the peanut gallery shows up to comment. The comment quality isn't much better than youtub... | 9 |
lolphp | nsfwIvan | c5xr40c | <|sols|><|sot|>PHP drops World domination from the TODO (xpost)<|eot|><|sol|>https://github.com/php/php-src/commit/a90170e6f803f283d6c8e4e8d6b7bd8b7bd011a4<|eol|><|sor|>Bug description: World isn't dominated by PHP
Status: CLOSED WONTFIX<|eor|><|sor|>I'ts a users fault. They use php in wrong way and doing so denounce ... | 5 |
lolphp | vytah | vga2d | <|sols|><|sot|>All timezones are equal.<|eot|><|sol|>https://bugs.php.net/bug.php?id=54655<|eol|><|eols|><|endoftext|> | 17 |
lolphp | Porges | c54avqe | <|sols|><|sot|>All timezones are equal.<|eot|><|sol|>https://bugs.php.net/bug.php?id=54655<|eol|><|sor|>> would be nice having this working too, if possible:
>
> var_dump($a >= $b);
>
> var_dump($a <= $b);
_<|eor|><|eols|><|endoftext|> | 6 |
lolphp | vytah | c54841e | <|sols|><|sot|>All timezones are equal.<|eot|><|sol|>https://bugs.php.net/bug.php?id=54655<|eol|><|soopr|>I tested it with two more distant timezones, to check if it's some weird issue with DST. It's not:
<?
$a = new \DateTimeZone("Europe/Rome");
$b = new \DateTimeZone("Asia/Tokyo");
var_dump($a == $b)... | 6 |
lolphp | sumdog | nvd8y | <|sols|><|sot|>Supercolliding PHP Array [X-Post from /r/Programming]<|eot|><|sol|>http://nikic.github.com/2011/12/28/Supercolliding-a-PHP-array.html<|eol|><|eols|><|endoftext|> | 17 |
lolphp | nikic | c3c8500 | <|sols|><|sot|>Supercolliding PHP Array [X-Post from /r/Programming]<|eot|><|sol|>http://nikic.github.com/2011/12/28/Supercolliding-a-PHP-array.html<|eol|><|sor|>Just to ensure that you got it right: This is not unique to PHP, not at all. All languages using non-randomized hashtables (which is pretty much all web langu... | 7 |
lolphp | ealf | g61yb | <|soss|><|sot|>json_decode('hello world') === 'hello world'<|eot|><|sost|><|eost|><|eoss|><|endoftext|> | 16 |
lolphp | ealf | c1m929d | <|soss|><|sot|>json_decode('hello world') === 'hello world'<|eot|><|sost|><|eost|><|soopr|>Also,
json_decode('[') === null
json_decode(' [') === ' ['
<|eoopr|><|eoss|><|endoftext|> | 11 |
lolphp | brinchj | c1nt06d | <|soss|><|sot|>json_decode('hello world') === 'hello world'<|eot|><|sost|><|eost|><|soopr|>Also,
json_decode('[') === null
json_decode(' [') === ' ['
<|eoopr|><|sor|>And here I chose JSON because it's such a simple notation. A strict parser can be implemented in a matter of hours.<|eor|><|eoss|><|endoftext|> | 5 |
lolphp | Takeoded | keyog2 | <|soss|><|sot|>consider using fetchAll() instead of fetchAll()<|eot|><|sost|>```
$ php -r '$db = new PDO('\''mysql:host=<censored>;port=<censored>;dbname=<censored>;charset=utf8mb4'\'','\''<censored>'\'','\''<censored>'\'',array (
PDO::ATTR_EMULATE_PREPARES=> false,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PD... | 16 |
lolphp | nikic | gg5uv28 | <|soss|><|sot|>consider using fetchAll() instead of fetchAll()<|eot|><|sost|>```
$ php -r '$db = new PDO('\''mysql:host=<censored>;port=<censored>;dbname=<censored>;charset=utf8mb4'\'','\''<censored>'\'','\''<censored>'\'',array (
PDO::ATTR_EMULATE_PREPARES=> false,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PD... | 29 |
lolphp | colshrapnel | gg5aphc | <|soss|><|sot|>consider using fetchAll() instead of fetchAll()<|eot|><|sost|>```
$ php -r '$db = new PDO('\''mysql:host=<censored>;port=<censored>;dbname=<censored>;charset=utf8mb4'\'','\''<censored>'\'','\''<censored>'\'',array (
PDO::ATTR_EMULATE_PREPARES=> false,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PD... | 8 |
lolphp | colshrapnel | gg5h7ya | <|soss|><|sot|>consider using fetchAll() instead of fetchAll()<|eot|><|sost|>```
$ php -r '$db = new PDO('\''mysql:host=<censored>;port=<censored>;dbname=<censored>;charset=utf8mb4'\'','\''<censored>'\'','\''<censored>'\'',array (
PDO::ATTR_EMULATE_PREPARES=> false,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PD... | 6 |
lolphp | Takeoded | fxpdi5 | <|sols|><|sot|>directly from 7.4.0RC6 to 7.4.3<|eot|><|sol|>https://i.redd.it/7c3verccgrr41.png<|eol|><|eols|><|endoftext|> | 19 |
lolphp | elcapitanoooo | fmvp1es | <|sols|><|sot|>directly from 7.4.0RC6 to 7.4.3<|eot|><|sol|>https://i.redd.it/7c3verccgrr41.png<|eol|><|sor|>PHP has a history of this. One release shipped (cant remeber the version) with hundreds of broken tests. Top quality software..<|eor|><|eols|><|endoftext|> | 18 |
lolphp | the_alias_of_andrea | fmvxx7w | <|sols|><|sot|>directly from 7.4.0RC6 to 7.4.3<|eot|><|sol|>https://i.redd.it/7c3verccgrr41.png<|eol|><|sor|>Eh, it seems like someone just forgot to update the homepage. The versions were not skipped, and there were several months between 7.4.0RC6 and 7.4.3:
* https://www.php.net/ChangeLog-7.php#7.4.3
* https://news-... | 15 |
lolphp | sproingie | fmzse1w | <|sols|><|sot|>directly from 7.4.0RC6 to 7.4.3<|eot|><|sol|>https://i.redd.it/7c3verccgrr41.png<|eol|><|sor|>The maintenance of the PHP homepage is the real lolphp. As are the release notes. [This is how you do release notes](https://perldoc.perl.org/5.30.0/perldelta.html)<|eor|><|eols|><|endoftext|> | 6 |
lolphp | DCoder1337 | fmz82ij | <|sols|><|sot|>directly from 7.4.0RC6 to 7.4.3<|eot|><|sol|>https://i.redd.it/7c3verccgrr41.png<|eol|><|sor|>PHP has a history of this. One release shipped (cant remeber the version) with hundreds of broken tests. Top quality software..<|eor|><|sor|>You're probably thinking of this shitshow in 5.3.7:
https://www.reddi... | 6 |
lolphp | Takeoded | bb6tb1 | <|sols|><|sot|>base_convert's `string $number`<|eot|><|sol|>https://3v4l.org/nWaSc<|eol|><|eols|><|endoftext|> | 17 |
lolphp | Takeoded | ekgmdmy | <|sols|><|sot|>base_convert's `string $number`<|eot|><|sol|>https://3v4l.org/nWaSc<|eol|><|soopr|>.. if someone wonders what \*should\* have happened:
Fatal error: Uncaught TypeError: Argument 1 passed to base\_convert() must be of the type string, float given<|eoopr|><|eols|><|endoftext|> | 8 |
lolphp | Takeoded | ekgsk8g | <|sols|><|sot|>base_convert's `string $number`<|eot|><|sol|>https://3v4l.org/nWaSc<|eol|><|soopr|>.. if someone wonders what \*should\* have happened:
Fatal error: Uncaught TypeError: Argument 1 passed to base\_convert() must be of the type string, float given<|eoopr|><|sor|>Are you sure? I feel like the float can... | 8 |
lolphp | SaltineAmerican_1970 | ekgy3ag | <|sols|><|sot|>base_convert's `string $number`<|eot|><|sol|>https://3v4l.org/nWaSc<|eol|><|soopr|>.. if someone wonders what \*should\* have happened:
Fatal error: Uncaught TypeError: Argument 1 passed to base\_convert() must be of the type string, float given<|eoopr|><|sor|>Are you sure? I feel like the float can... | 5 |
lolphp | SquireCD | 9h0jfj | <|sols|><|sot|>[/r/PHP X-POST] strlen() shenanigans<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/9gzskx/psa_strlen_does_not_get_the_length_of_the/<|eol|><|eols|><|endoftext|> | 16 |
lolphp | r4ymonf | e68ao9p | <|sols|><|sot|>[/r/PHP X-POST] strlen() shenanigans<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/9gzskx/psa_strlen_does_not_get_the_length_of_the/<|eol|><|sor|>I don't think this is really lolphp material. It's essentially the same result you'd get with std::string::size() in C++ and (obviously) strlen in C, and ... | 26 |
lolphp | shaql | e68sdi2 | <|sols|><|sot|>[/r/PHP X-POST] strlen() shenanigans<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/9gzskx/psa_strlen_does_not_get_the_length_of_the/<|eol|><|sor|>I don't think this is really lolphp material. It's essentially the same result you'd get with std::string::size() in C++ and (obviously) strlen in C, and ... | 25 |
lolphp | AyrA_ch | e68xp58 | <|sols|><|sot|>[/r/PHP X-POST] strlen() shenanigans<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/9gzskx/psa_strlen_does_not_get_the_length_of_the/<|eol|><|sor|>I don't think this is really lolphp material. It's essentially the same result you'd get with std::string::size() in C++ and (obviously) strlen in C, and ... | 13 |
lolphp | AyrA_ch | e68zwo5 | <|sols|><|sot|>[/r/PHP X-POST] strlen() shenanigans<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/9gzskx/psa_strlen_does_not_get_the_length_of_the/<|eol|><|sor|>I don't think this is really lolphp material. It's essentially the same result you'd get with std::string::size() in C++ and (obviously) strlen in C, and ... | 13 |
lolphp | gsnedders | e68zmzs | <|sols|><|sot|>[/r/PHP X-POST] strlen() shenanigans<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/9gzskx/psa_strlen_does_not_get_the_length_of_the/<|eol|><|sor|>I don't think this is really lolphp material. It's essentially the same result you'd get with std::string::size() in C++ and (obviously) strlen in C, and ... | 11 |
lolphp | minimim | e69ds26 | <|sols|><|sot|>[/r/PHP X-POST] strlen() shenanigans<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/9gzskx/psa_strlen_does_not_get_the_length_of_the/<|eol|><|sor|>mb_strlen() doesn't count characters, it tries to count code-points.<|eor|><|eols|><|endoftext|> | 5 |
lolphp | barubary | e6jitmo | <|sols|><|sot|>[/r/PHP X-POST] strlen() shenanigans<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/9gzskx/psa_strlen_does_not_get_the_length_of_the/<|eol|><|sor|>I don't think this is really lolphp material. It's essentially the same result you'd get with std::string::size() in C++ and (obviously) strlen in C, and ... | 5 |
lolphp | pilif | 4zof71 | <|sols|><|sot|>version_compare(), when fed senseless data doesn't complain but treats 'p' differently<|eot|><|sol|>https://3v4l.org/v203M<|eol|><|eols|><|endoftext|> | 18 |
lolphp | Almamu | d6xfbke | <|sols|><|sot|>version_compare(), when fed senseless data doesn't complain but treats 'p' differently<|eot|><|sol|>https://3v4l.org/v203M<|eol|><|sor|>This one is defined behavior and specified in the docs. http://php.net/manual/en/function.version-compare.php
Look at the notes, # < pl = p, it's related to php versioni... | 12 |
lolphp | TheBuzzSaw | 4oagr9 | <|sols|><|sot|>"What do you plan to do about it?" -- "Nothing"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4o7aa5/php_segfaults_on_30k_items_in_a_linked_list/d4aiev7<|eol|><|eols|><|endoftext|> | 17 |
lolphp | Works_of_memercy | d4njr2y | <|sols|><|sot|>"What do you plan to do about it?" -- "Nothing"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4o7aa5/php_segfaults_on_30k_items_in_a_linked_list/d4aiev7<|eol|><|sor|>Serious question (I am PHP dev):
Guys, is it *that* hard to implement iteratable solution and just check the size of the list to be d... | 7 |
lolphp | nikic | d4upeo6 | <|sols|><|sot|>"What do you plan to do about it?" -- "Nothing"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4o7aa5/php_segfaults_on_30k_items_in_a_linked_list/d4aiev7<|eol|><|sor|>Serious question (I am PHP dev):
Guys, is it *that* hard to implement iteratable solution and just check the size of the list to be d... | 6 |
lolphp | jozefNiepilsucki | d4meusv | <|sols|><|sot|>"What do you plan to do about it?" -- "Nothing"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4o7aa5/php_segfaults_on_30k_items_in_a_linked_list/d4aiev7<|eol|><|sor|>Serious question (I am PHP dev):
Guys, is it *that* hard to implement iteratable solution and just check the size of the list to be d... | 5 |
lolphp | kosinix | 4lavbw | <|soss|><|sot|>SplPriorityQueue Does Not Behave Like a Queue<|eot|><|sost|>SplPriorityQueue is advertised as a prioritized queue.
Ideally, as a queue, when adding items of the same priority, the items should retain the same order as how they were registered (FIFO).
But No. In PHP the order is unexpected.
Demo: https... | 15 |
lolphp | dtfinch | d3m1e3t | <|soss|><|sot|>SplPriorityQueue Does Not Behave Like a Queue<|eot|><|sost|>SplPriorityQueue is advertised as a prioritized queue.
Ideally, as a queue, when adding items of the same priority, the items should retain the same order as how they were registered (FIFO).
But No. In PHP the order is unexpected.
Demo: https... | 19 |
lolphp | Scaliwag | d3m93ie | <|soss|><|sot|>SplPriorityQueue Does Not Behave Like a Queue<|eot|><|sost|>SplPriorityQueue is advertised as a prioritized queue.
Ideally, as a queue, when adding items of the same priority, the items should retain the same order as how they were registered (FIFO).
But No. In PHP the order is unexpected.
Demo: https... | 15 |
lolphp | the_alias_of_andrea | d3lryh3 | <|soss|><|sot|>SplPriorityQueue Does Not Behave Like a Queue<|eot|><|sost|>SplPriorityQueue is advertised as a prioritized queue.
Ideally, as a queue, when adding items of the same priority, the items should retain the same order as how they were registered (FIFO).
But No. In PHP the order is unexpected.
Demo: https... | 14 |
lolphp | the_alias_of_andrea | d3n0yyr | <|soss|><|sot|>SplPriorityQueue Does Not Behave Like a Queue<|eot|><|sost|>SplPriorityQueue is advertised as a prioritized queue.
Ideally, as a queue, when adding items of the same priority, the items should retain the same order as how they were registered (FIFO).
But No. In PHP the order is unexpected.
Demo: https... | 9 |
lolphp | devseya | d3nylz4 | <|soss|><|sot|>SplPriorityQueue Does Not Behave Like a Queue<|eot|><|sost|>SplPriorityQueue is advertised as a prioritized queue.
Ideally, as a queue, when adding items of the same priority, the items should retain the same order as how they were registered (FIFO).
But No. In PHP the order is unexpected.
Demo: https... | 5 |
lolphp | Takeoded | 4inz48 | <|sols|><|sot|>i should have expected php to be incapable of keeping references, right?<|eot|><|sol|>https://3v4l.org/4IhEq<|eol|><|eols|><|endoftext|> | 17 |
lolphp | tdammers | d2zporp | <|sols|><|sot|>i should have expected php to be incapable of keeping references, right?<|eot|><|sol|>https://3v4l.org/4IhEq<|eol|><|sor|>I love this part:
> Catchable fatal error: Argument 1 passed to a() must be an instance of int, int given<|eor|><|eols|><|endoftext|> | 26 |
lolphp | DoctorWaluigiTime | d2zsrmt | <|sols|><|sot|>i should have expected php to be incapable of keeping references, right?<|eot|><|sol|>https://3v4l.org/4IhEq<|eol|><|sor|>I love this part:
> Catchable fatal error: Argument 1 passed to a() must be an instance of int, int given<|eor|><|sor|>Welcome to how PHP implemented typehinting.<|eor|><|eols|><|end... | 14 |
lolphp | tdammers | d2zpop2 | <|sols|><|sot|>i should have expected php to be incapable of keeping references, right?<|eot|><|sol|>https://3v4l.org/4IhEq<|eol|><|sor|>Yes you should, it's [documented](http://php.net/func_get_args):
> Note: This function returns a copy of the passed arguments only<|eor|><|soopr|>but why? is it just a implementation... | 13 |
lolphp | DoctorWaluigiTime | d2zsrdg | <|sols|><|sot|>i should have expected php to be incapable of keeping references, right?<|eot|><|sol|>https://3v4l.org/4IhEq<|eol|><|sor|>> call_user_func_array
Let me stop you right there.<|eor|><|eols|><|endoftext|> | 12 |
lolphp | Takeoded | d2zp40a | <|sols|><|sot|>i should have expected php to be incapable of keeping references, right?<|eot|><|sol|>https://3v4l.org/4IhEq<|eol|><|sor|>Yes you should, it's [documented](http://php.net/func_get_args):
> Note: This function returns a copy of the passed arguments only<|eor|><|soopr|>but why? is it just a implementation... | 9 |
lolphp | tdammers | d2zu8ek | <|sols|><|sot|>i should have expected php to be incapable of keeping references, right?<|eot|><|sol|>https://3v4l.org/4IhEq<|eol|><|sor|>I love this part:
> Catchable fatal error: Argument 1 passed to a() must be an instance of int, int given<|eor|><|sor|>Welcome to how PHP implemented typehinting.<|eor|><|sor|>Or "ty... | 7 |
lolphp | gearvOsh | d30mxk9 | <|sols|><|sot|>i should have expected php to be incapable of keeping references, right?<|eot|><|sol|>https://3v4l.org/4IhEq<|eol|><|sor|>Can someone explain why this doesn't work?<|eor|><|sor|>Because `func_get_args()` passes by value.<|eor|><|eols|><|endoftext|> | 6 |
lolphp | cite-reader | d30quun | <|sols|><|sot|>i should have expected php to be incapable of keeping references, right?<|eot|><|sol|>https://3v4l.org/4IhEq<|eol|><|sor|>Can someone explain why this doesn't work?<|eor|><|sor|>Because `func_get_args()` passes by value.<|eor|><|sor|>And also references aren't actually values. "Reference-ness" is a magic... | 6 |
lolphp | nikic | d319o1w | <|sols|><|sot|>i should have expected php to be incapable of keeping references, right?<|eot|><|sol|>https://3v4l.org/4IhEq<|eol|><|sor|>Yes you should, it's [documented](http://php.net/func_get_args):
> Note: This function returns a copy of the passed arguments only<|eor|><|soopr|>but why? is it just a implementation... | 5 |
lolphp | terrkerr | 4avbba | <|soss|><|sot|>const Attributes and array addition<|eot|><|sost|>So for reasons I wanted a bunch of classes that specified all valid attributes they could have, and also specify all attributes that they *must* have to be considered valid. Since the latter list is necessarily a subset of the former I wrote out something... | 16 |
lolphp | maweki | d13w9tm | <|soss|><|sot|>const Attributes and array addition<|eot|><|sost|>So for reasons I wanted a bunch of classes that specified all valid attributes they could have, and also specify all attributes that they *must* have to be considered valid. Since the latter list is necessarily a subset of the former I wrote out something... | 23 |
lolphp | phpguy2 | d14d18f | <|soss|><|sot|>const Attributes and array addition<|eot|><|sost|>So for reasons I wanted a bunch of classes that specified all valid attributes they could have, and also specify all attributes that they *must* have to be considered valid. Since the latter list is necessarily a subset of the former I wrote out something... | 10 |
lolphp | serendependy | d14p1ff | <|soss|><|sot|>const Attributes and array addition<|eot|><|sost|>So for reasons I wanted a bunch of classes that specified all valid attributes they could have, and also specify all attributes that they *must* have to be considered valid. Since the latter list is necessarily a subset of the former I wrote out something... | 5 |
lolphp | maweki | d14fimv | <|soss|><|sot|>const Attributes and array addition<|eot|><|sost|>So for reasons I wanted a bunch of classes that specified all valid attributes they could have, and also specify all attributes that they *must* have to be considered valid. Since the latter list is necessarily a subset of the former I wrote out something... | 5 |
lolphp | Farkeman | 42kupy | <|sols|><|sot|>Php proposes code of conduct<|eot|><|sol|>https://wiki.php.net/rfc/adopt-code-of-conduct<|eol|><|eols|><|endoftext|> | 17 |
lolphp | jdickey | czbcdxm | <|sols|><|sot|>Php proposes code of conduct<|eot|><|sol|>https://wiki.php.net/rfc/adopt-code-of-conduct<|eol|><|sor|>Our previous discussion on the topic: https://www.reddit.com/r/lolphp/comments/3zikur/grap_your_popcorns_for_a_bit_of_phpdrama_and/<|eor|><|sor|>There's not enough popcorn in the history of the planet; a... | 15 |
lolphp | qwerty6868 | czblv4b | <|sols|><|sot|>Php proposes code of conduct<|eot|><|sol|>https://wiki.php.net/rfc/adopt-code-of-conduct<|eol|><|sor|>PHP: The gift that keeps on giving.
What a cesspool of incompetence.<|eor|><|eols|><|endoftext|> | 13 |
lolphp | Farkeman | czb3yjv | <|sols|><|sot|>Php proposes code of conduct<|eot|><|sol|>https://wiki.php.net/rfc/adopt-code-of-conduct<|eol|><|soopr|>One of the points is:
"Thoughtless use of pronouns"
What a world we live in!<|eoopr|><|eols|><|endoftext|> | 11 |
lolphp | maweki | czbe1k1 | <|sols|><|sot|>Php proposes code of conduct<|eot|><|sol|>https://wiki.php.net/rfc/adopt-code-of-conduct<|eol|><|sor|>Our previous discussion on the topic: https://www.reddit.com/r/lolphp/comments/3zikur/grap_your_popcorns_for_a_bit_of_phpdrama_and/<|eor|><|sor|>There's not enough popcorn in the history of the planet; a... | 11 |
lolphp | maweki | czb5k1k | <|sols|><|sot|>Php proposes code of conduct<|eot|><|sol|>https://wiki.php.net/rfc/adopt-code-of-conduct<|eol|><|sor|>Our previous discussion on the topic: https://www.reddit.com/r/lolphp/comments/3zikur/grap_your_popcorns_for_a_bit_of_phpdrama_and/<|eor|><|eols|><|endoftext|> | 9 |
lolphp | fgous | czbi2hj | <|sols|><|sot|>Php proposes code of conduct<|eot|><|sol|>https://wiki.php.net/rfc/adopt-code-of-conduct<|eol|><|sor|>Funny thing is [no one can point to an instance of abuse](https://www.reddit.com/r/PHP/comments/41vuja/rfc_reproposed_adopt_code_of_conduct/cz6pecs) in the internals in the past.....<|eor|><|eols|><|endo... | 8 |
lolphp | maweki | czbdgcu | <|sols|><|sot|>Php proposes code of conduct<|eot|><|sol|>https://wiki.php.net/rfc/adopt-code-of-conduct<|eol|><|sor|>Our previous discussion on the topic: https://www.reddit.com/r/lolphp/comments/3zikur/grap_your_popcorns_for_a_bit_of_phpdrama_and/<|eor|><|sor|>There's not enough popcorn in the history of the planet; a... | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.