WTF Bites


  • Winner of the 2016 Presidential Election

    @zecc said in WTF Bites:

    I wouldn't be caught dead in that club.

    Found a @groaner alt.


  • Dupa

    @darkmatter said in WTF Bites:

    i'd seen this old one before...
    0_1501475860395_369d58ab-2bdf-4458-9f7d-6c99f2696fe9-image.png

    however, i'd never seen the followup until now.....

    0_1501475888087_5cf38d8e-f4ce-42d6-b949-7fb1f60a5b01-image.png

    Call bullshit on this one. The first card is good thru 2017, the second one is good thru 2015.



  • When you start an application ported from Linux and the very first dialog already has both slashes and backslashes in the same path, you know you're in for a doozy.

    0_1501869983351_578bbc25-27c7-42c7-8727-a5c8705488b4-image.png


  • Dupa

    @maciejasjmj said in WTF Bites:

    When you start an application ported from Linux and the very first dialog already has both slashes and backslashes in the same path, you know you're in for a doozy.

    0_1501869983351_578bbc25-27c7-42c7-8727-a5c8705488b4-image.png

    What kind of app is this?


  • Winner of the 2016 Presidential Election

    @maciejasjmj
    I'd be more worried about the other gibberish in that dialog. 🐠



  • @kt_ said in WTF Bites:

    What kind of app is this?

    Music making software. Apparently a Fruity Loops knockoff, just as obscure and difficult to handle, but with no added street cred from having shelled out hundreds of dollars on software you don't know how to use.



  • @asdf said in WTF Bites:

    @maciejasjmj
    I'd be more worried about the other gibberish in that dialog. 🐠

    Also yes, it defaults to Polish, which is really interesting since my OS is in English. The only things Polish in it are some regional settings and the IP address.


  • Java Dev

    @maciejasjmj said in WTF Bites:

    Also yes, it defaults to Polish, which is really interesting since my OS is in English

    I'm pretty used to that :wtf:. Seems they see your location is set to Poland (or The Netherlands, in my case) and they immediately assumed you got conned into an English windows and send you through terrible hoops to get an English version of their software.

    Recently I decided to try the bash on ubuntu on windows thing. MS actually set the ubuntu to dutch.



  • 0_1501874526610_d51c1d53-c184-45fc-8246-9102ceef91f9-image.png

    "The community checked this translation"? Quenta isn't even a word!



  • @maciejasjmj Most websites seem to assume that IP geolocation == language the user wants (sometimes they even block attempts to change it), but I've never seen a desktop app that did that.


  • kills Dumbledore

    @anonymous234 on a similar note, my phone tried to autodetect the number for voicemail for my network. Unfortunately, it doesn't work right with virtual network operators and detects the number for the parent network. There is an option to change it, but it doesn't actually do anything. Setting it, going back into the parent settings menu and tapping back in the option results in the old number being displayed again.

    No idea if this is an android issue or a Motorola one


  • BINNED

    @maciejasjmj said in WTF Bites:

    When you start an application ported from Linux and the very first dialog already has both slashes and backslashes in the same path, you know you're in for a doozy.

    0_1501869983351_578bbc25-27c7-42c7-8727-a5c8705488b4-image.png

    It is perfectly valid in Windows 10

    E_INVALID_WTF


  • Dupa

    Brace yourself, this is a good one.

    So I've got this laptop with a dead battery. It's old, but it's still capable of playing 1080p, so I keep it for that. Sometimes, though, I have this urge to take it a few feet farther and well… I can't. So I decided to buy a new battery for it.

    I know fuck all about batteries so I chose the one online store that sells a battery branded for this particular laptop model. Also, I've bought from them before. Because I don't like the VAT, I decided to buy it and get the invoice issued to my father's company. And here's where it started to get funny.

    1. There was no way to input address for the company, they just filled the delivery address as the company address. Had to email them to change it.
    2. When it finally got here, I wasn't home, so the postman brought it back to the post office. I went there and they told me… they wouldn't give the package to me. Because it's addressed to the company, with no name there. This means that only people that are on the board or people with authorization signed by someone from the board, can retrieve it.
    3. If I were there when the postman came, she'd give it to me, no questions asked.

    On Monday I'm gonna call them and be very unpleasant to them. Mostly because it's not the first time they screwed up.

    You see, this is the second battery replacement I ordered from them. The first time they managed to mail it to the address on the invoice, instead of the delivery address. Fortunately it was only a few blocks away, so I was able to retrieve it quite easily.

    The next time, though, they sent me an email saying that they sent the 1500 PLN worth of stuff to me. They even included the tracking number for the package.

    The issue there was:

    1. I didn't order anything. It was my father's company that did.
    2. And the address was wrong, because it was from my first order from them and don't live there anymore.

    Which means, someone from the company somehow got from their system my delivery address from the first order when the company I just wanted to be on the invoice made an order with them. And they sent the stuff to me, but not me, a stranger really, because I don't live there anymore. And knowing how delivery companies work around here, they'd probably leave the stuff with the wrong people anyway!

    Luckily for them, the courier company allowed them to change the delivery address, because it was only a few blocks away.

    Fuck, I made two orders with them and they managed to screw up 3 times. Losers.

    Today, after realizing what happened, I wanted to yell at them real hard. I went to the website, saw they had a line open 8 AM - 8 PM (it was 5.30), called them. All I got was "we're open 8 - 4, Monday thru Friday".

    They can't even get their own opening times right!



  • Very minor WTF--I'm having a washer and dryer installed. They're stacked (because the space is small). As would make sense, the washer is on bottom. The outlets, however, are reversed--the dryer outlet (a big 4-prong, 220-V one) is on bottom and the washer one (a normal 110-V plug) is on top. Oh, and the dryer outlet is upside down. That made the installers have to go get a longer cord for about a 2-inch gap. Builders...



  • @kt_ said in WTF Bites:

    Fuck, I made two orders with them and they managed to screw up 3 times. Losers.

    If you order from them again, guess we'll have to include you in this list!


  • Winner of the 2016 Presidential Election

    @kt_ said in WTF Bites:

    Brace yourself, this is a good one.

    So I've got this laptop with a dead battery. It's old, but it's still capable of playing 1080p, so I keep it for that. Sometimes, though, I have this urge to take it a few feet farther and well… I can't. So I decided to buy a new battery for it.

    I know fuck all about batteries so I chose the one online store that sells a battery branded for this particular laptop model. Also, I've bought from them before. Because I don't like the VAT, I decided to buy it and get the invoice issued to my father's company. And here's where it started to get funny.

    1. There was no way to input address for the company, they just filled the delivery address as the company address. Had to email them to change it.
    2. When it finally got here, I wasn't home, so the postman brought it back to the post office. I went there and they told me… they wouldn't give the package to me. Because it's addressed to the company, with no name there. This means that only people that are on the board or people with authorization signed by someone from the board, can retrieve it.
    3. If I were there when the postman came, she'd give it to me, no questions asked.

    On Monday I'm gonna call them and be very unpleasant to them. Mostly because it's not the first time they screwed up.

    You see, this is the second battery replacement I ordered from them. The first time they managed to mail it to the address on the invoice, instead of the delivery address. Fortunately it was only a few blocks away, so I was able to retrieve it quite easily.

    The next time, though, they sent me an email saying that they sent the 1500 PLN worth of stuff to me. They even included the tracking number for the package.

    The issue there was:

    1. I didn't order anything. It was my father's company that did.
    2. And the address was wrong, because it was from my first order from them and don't live there anymore.

    Which means, someone from the company somehow got from their system my delivery address from the first order when the company I just wanted to be on the invoice made an order with them. And they sent the stuff to me, but not me, a stranger really, because I don't live there anymore. And knowing how delivery companies work around here, they'd probably leave the stuff with the wrong people anyway!

    Luckily for them, the courier company allowed them to change the delivery address, because it was only a few blocks away.

    Fuck, I made two orders with them and they managed to screw up 3 times. Losers.

    Today, after realizing what happened, I wanted to yell at them real hard. I went to the website, saw they had a line open 8 AM - 8 PM (it was 5.30), called them. All I got was "we're open 8 - 4, Monday thru Friday".

    They can't even get their own opening times right!

    So basically you tried to commit VAT fraud and got a lot of trouble for your efforts?



  • @kt_ said in WTF Bites:

    @darkmatter said in WTF Bites:

    i'd seen this old one before...
    0_1501475860395_369d58ab-2bdf-4458-9f7d-6c99f2696fe9-image.png

    however, i'd never seen the followup until now.....

    0_1501475888087_5cf38d8e-f4ce-42d6-b949-7fb1f60a5b01-image.png

    Call bullshit on this one. The first card is good thru 2017, the second one is good thru 2015.

    All that and you didn't notice the names are different.


  • Notification Spam Recipient

    @maciejasjmj said in WTF Bites:

    The only things Polish in it are some regional settings and the IP address.

    WTF is a "Polish" IP address? Are the numbers backwards or something?



  • @tsaukpaetra said in WTF Bites:

    WTF is a "Polish" IP address? Are the numbers backwards or something?

    The numbers shine since they're polished.


  • Dupa

    @anotherusername said in WTF Bites:

    @kt_ said in WTF Bites:

    @darkmatter said in WTF Bites:

    i'd seen this old one before...
    0_1501475860395_369d58ab-2bdf-4458-9f7d-6c99f2696fe9-image.png

    however, i'd never seen the followup until now.....

    0_1501475888087_5cf38d8e-f4ce-42d6-b949-7fb1f60a5b01-image.png

    Call bullshit on this one. The first card is good thru 2017, the second one is good thru 2015.

    All that and you didn't notice the names are different.

    On a small mobile screen it looked blurred out on the first one.


  • Dupa

    @dreikin said in WTF Bites:

    @kt_ said in WTF Bites:

    Brace yourself, this is a good one.

    So I've got this laptop with a dead battery. It's old, but it's still capable of playing 1080p, so I keep it for that. Sometimes, though, I have this urge to take it a few feet farther and well… I can't. So I decided to buy a new battery for it.

    I know fuck all about batteries so I chose the one online store that sells a battery branded for this particular laptop model. Also, I've bought from them before. Because I don't like the VAT, I decided to buy it and get the invoice issued to my father's company. And here's where it started to get funny.

    1. There was no way to input address for the company, they just filled the delivery address as the company address. Had to email them to change it.
    2. When it finally got here, I wasn't home, so the postman brought it back to the post office. I went there and they told me… they wouldn't give the package to me. Because it's addressed to the company, with no name there. This means that only people that are on the board or people with authorization signed by someone from the board, can retrieve it.
    3. If I were there when the postman came, she'd give it to me, no questions asked.

    On Monday I'm gonna call them and be very unpleasant to them. Mostly because it's not the first time they screwed up.

    You see, this is the second battery replacement I ordered from them. The first time they managed to mail it to the address on the invoice, instead of the delivery address. Fortunately it was only a few blocks away, so I was able to retrieve it quite easily.

    The next time, though, they sent me an email saying that they sent the 1500 PLN worth of stuff to me. They even included the tracking number for the package.

    The issue there was:

    1. I didn't order anything. It was my father's company that did.
    2. And the address was wrong, because it was from my first order from them and don't live there anymore.

    Which means, someone from the company somehow got from their system my delivery address from the first order when the company I just wanted to be on the invoice made an order with them. And they sent the stuff to me, but not me, a stranger really, because I don't live there anymore. And knowing how delivery companies work around here, they'd probably leave the stuff with the wrong people anyway!

    Luckily for them, the courier company allowed them to change the delivery address, because it was only a few blocks away.

    Fuck, I made two orders with them and they managed to screw up 3 times. Losers.

    Today, after realizing what happened, I wanted to yell at them real hard. I went to the website, saw they had a line open 8 AM - 8 PM (it was 5.30), called them. All I got was "we're open 8 - 4, Monday thru Friday".

    They can't even get their own opening times right!

    So basically you tried to commit VAT fraud and got a lot of trouble for your efforts?

    Exactly! And the issue is, it never happened before. Usually they're extremely willing to cooperate!


  • Dupa

    @kt_ said in WTF Bites:

    @dreikin said in WTF Bites:

    @kt_ said in WTF Bites:

    Brace yourself, this is a good one.

    So I've got this laptop with a dead battery. It's old, but it's still capable of playing 1080p, so I keep it for that. Sometimes, though, I have this urge to take it a few feet farther and well… I can't. So I decided to buy a new battery for it.

    I know fuck all about batteries so I chose the one online store that sells a battery branded for this particular laptop model. Also, I've bought from them before. Because I don't like the VAT, I decided to buy it and get the invoice issued to my father's company. And here's where it started to get funny.

    1. There was no way to input address for the company, they just filled the delivery address as the company address. Had to email them to change it.
    2. When it finally got here, I wasn't home, so the postman brought it back to the post office. I went there and they told me… they wouldn't give the package to me. Because it's addressed to the company, with no name there. This means that only people that are on the board or people with authorization signed by someone from the board, can retrieve it.
    3. If I were there when the postman came, she'd give it to me, no questions asked.

    On Monday I'm gonna call them and be very unpleasant to them. Mostly because it's not the first time they screwed up.

    You see, this is the second battery replacement I ordered from them. The first time they managed to mail it to the address on the invoice, instead of the delivery address. Fortunately it was only a few blocks away, so I was able to retrieve it quite easily.

    The next time, though, they sent me an email saying that they sent the 1500 PLN worth of stuff to me. They even included the tracking number for the package.

    The issue there was:

    1. I didn't order anything. It was my father's company that did.
    2. And the address was wrong, because it was from my first order from them and don't live there anymore.

    Which means, someone from the company somehow got from their system my delivery address from the first order when the company I just wanted to be on the invoice made an order with them. And they sent the stuff to me, but not me, a stranger really, because I don't live there anymore. And knowing how delivery companies work around here, they'd probably leave the stuff with the wrong people anyway!

    Luckily for them, the courier company allowed them to change the delivery address, because it was only a few blocks away.

    Fuck, I made two orders with them and they managed to screw up 3 times. Losers.

    Today, after realizing what happened, I wanted to yell at them real hard. I went to the website, saw they had a line open 8 AM - 8 PM (it was 5.30), called them. All I got was "we're open 8 - 4, Monday thru Friday".

    They can't even get their own opening times right!

    So basically you tried to commit VAT fraud and got a lot of trouble for your efforts?

    Exactly! And the issue is, it never happened before. Usually they're extremely willing to cooperate!


    ETA Mind you, it wasn't VAT fraud, it was VAT optimization. And I didn't try to commit it, depending on how you look at it I already did or I'm gonna next week.



  • @benjamin-hall

    4-Prong Dryer Outlet Wiring
    A 4-prong dryer outlet is wired as a 120/240-volt circuit. The 120-volt service is for the dryer's timers, sensors, and other electronics, while the 240-volt service supplies the heating elements.

    :wtf: ?


  • Discourse touched me in a no-no place

    @coldandtired That's North American domestic electrical systems for you.



  • @coldandtired the 240v circuit is actually 2 x 120v. The dryer is connected to a single 240v plug. If it needs 120v internally, it can extract it from the 240v easily.


  • I survived the hour long Uno hand

    :wtf: is up with the subliminal adverts inside this advert for this treadmill bike? (and also, :wtf: treadmill bike)

    https://www.lopifitus.com/the-story-of-lopifit-the-electric-walking-bike/


  • Dupa

    @yamikuronue said in WTF Bites:

    :wtf: is up with the subliminal adverts inside this advert for this treadmill bike? (and also, :wtf: treadmill bike)

    https://www.lopifitus.com/the-story-of-lopifit-the-electric-walking-bike/

    Holy mother of fuck!



  • @kt_ holy discoursistant one boxing, Batman!

    0_1501938516069_IMG_0324.PNG



  • @kt_ said in WTF Bites:

    @anotherusername said in WTF Bites:

    @kt_ said in WTF Bites:

    @darkmatter said in WTF Bites:

    i'd seen this old one before...
    0_1501475860395_369d58ab-2bdf-4458-9f7d-6c99f2696fe9-image.png

    however, i'd never seen the followup until now.....

    0_1501475888087_5cf38d8e-f4ce-42d6-b949-7fb1f60a5b01-image.png

    Call bullshit on this one. The first card is good thru 2017, the second one is good thru 2015.

    All that and you didn't notice the names are different.

    On a small mobile screen it looked blurred out on the first one.

    It was blurred out on both of them. Still, you can tell they're different.


  • 🚽 Regular

    @maciejasjmj said in WTF Bites:

    Also yes, it defaults to Polish, which is really interesting since my OS is in English. The only things Polish in it are some regional settings and the IP address.

    YES. Why does this happen? It's so frustrating.

    @anonymous234 said in WTF Bites:

    @maciejasjmj Most websites seem to assume that IP geolocation == language the user wants (sometimes they even block attempts to change it), but I've never seen a desktop app that did that.

    I've seen plenty. VLC, for one.

    Also most .msi installers like to switch to regional language, despite the OS language.


  • Notification Spam Recipient

    @yamikuronue said in WTF Bites:

    :wtf: is up with the subliminal adverts

    Really? Didn't notice it.

    Oh wait, there it is
    0_1502018424386_Untitled.png

    Yeah, I should have noticed when it suddenly switched to a language I can only half read


  • I survived the hour long Uno hand

    @cark I somehow skimmed past that until I got to this one:

    The term, Lopifit is derived from wholesale nba jerseys



  • @maciejasjmj said in WTF Bites:

    Also yes, it defaults to Polish, which is really interesting since my OS is in English. The only things Polish in it are some regional settings

    This is fairly typical for

    @maciejasjmj said in WTF Bites:

    application ported from Linux

    Windows have a ‘user’ locale, which is the majority of what you set up in the dialog, and a ‘system’ locale. And I am pretty sure there is additional option to set ‘UI’ locale, though I can't find where it was now. The ‘system’ locale is used in the LibC API, the ‘user’ locale is used by the ‘NLS’ functions and the ‘UI’ locale is the message category. So native applications will use the ‘user’ and ‘UI’ locale, but applications ported from Unix will use the ‘system’ one.

    If you actually have Polish Windows, reconfigured to English, chances are you didn't change the ‘system’ locale.

    @pleegwat said in WTF Bites:

    Seems they see your location is set to Poland (or The Netherlands, in my case) and they immediately assumed you got conned into an English windows and send you through terrible hoops to get an English version of their software.

    Some webs do that (using GeoIP), but this won't be the case. This is simply application not understanding the mess that is WinAPI.


  • BINNED

    From PHP changelog:

    5.2.2	DateTime object comparison with the comparison operators changed to work as expected.
            Previously, all DateTime objects were considered equal (using ==).
    

    :facepalm:



  • @anonymous234 said in WTF Bites:

    @maciejasjmj Most websites seem to assume that IP geolocation == language the user wants (sometimes they even block attempts to change it), but I've never seen a desktop app that did that.

    May I introduce you to EAs Origin? Granted, it's the browser-in-a-window kind of desktop app. You can set the apps native interface to a different language (the menus and so on show up in english), but most of the content (which seems to be just fetched from EAs webpage or something) is of course in whatever language EA decides you should speak based on your IP.



  • @onyx and then you realise 7.1 broke DateTime in a backwards incompatible way by making it microsecond precision under the hood.


  • BINNED

    @arantor said in WTF Bites:

    @onyx and then you realise 7.1 broke DateTime in a backwards incompatible way by making it microsecond precision under the hood.

    I'd hazard to say that, if that matters to your code, you're :doing_it_wrong:

    Seriously though, unless they fucked up getTimestamp and it now returns microseconds instead of seconds, why should it matter?

    ...

    They did, didn't they?


  • ♿ (Parody)

    In a part of our app where no dev wants to venture (it was written by the guy who was originally the architect, and while a smart guy, lots of repetition (like, option1 and option2 instead of an array or a list or something) and other awful evil bullshit including xhtml markup with single space indenting) there has been a button whose explanatory text reads something like:

    "Frobnicate the foos using selected options"

    I would always hesitate to click this, because I haven't selected any options yet! What it really meant is, "Select some options and frobnicate the foos." Today I finally have a ticket changing the behavior on this page and I'm going to fix the fucking words.

    Ahhhhh....that feels good.


  • BINNED

    In other "PHP done broke in 7.1" news:

    call_user_func() handling of reference arguments

    call_user_func() will now always generate a warning upon calls to functions that expect references as arguments. Previously this depended on whether the call was fully qualified.

    Additionally, call_user_func() and call_user_func_array() will no longer abort the function call in this case. The "expected reference" warning will be emitted, but the call will proceed as usual.

    So... You'll always emit a warning about passing references to functions that expect it.... but run them anyway? Are you deprecating it? Are you just afraid for my well-being because references are hard and I'm a delicate flower? WHAT IS THE REASONING?

    0_1502201022067_a753e348-a286-488c-8f1c-2eb7ec695f0a-image.png



  • @onyx Passive aggressive language design.

    PHP: Huff!
    Me: What's wrong PHP?
    PHP: Nothing.
    Me: Okay....
    PHP: .... Huff! (punches me for no reason)


  • BINNED

    Hello, me again, spamming more PHP shit since I'm reading all this junk. Scrolled through the comments now.

    The backwards incompatible change 'The empty index operator is not supported for strings anymore' has a lot more implications than just a fatal error on the following code

    <?php
    $a = "";
    $a[] = "hello world";
    var_dump($a);
    ?>
    

    This will give a fatal error in 7.1 but will work as expected in 7.0 or below and give you: (no notice, no warning)

    array(1) {
     [0]=>
    string(11) "hello world"
    }
    

    Expected? EXPECTED? You, my friend, expect wrong things, this change is good.

    However, the following is also changed:

    <?php
    $a = "";
    $a[0] = "hello world";
    var_dump($a);
    // 7.1: string(1) "h"
    // pre-7.1: array(1) {  [0]=>  string(11) "hello world" }
    

    Yes, good. The whole thing with it taking just the first character of the string is slightly dodgy, but they can't do much while both single and double quotes can be used for strings in PHP. Personally, I'd purge that as well (even if that will mean I'll have to fix some of my quoting, I've been a bad boy), but this is at least acceptable.

    $a = "";
    $a[5] = "hello world";
    var_dump($a);
    // 7.1: string(6) "     h"
    // pre-7.1: array(1) {  [0]=>  string(11) "hello world" }
    
    ?>
    

    No! NO! Fuck you and burn in hell if you ever wrote code like that and expected it to work as it did in pre-7.1! Not only it was wrong, it was HORRIBLY wrong because it was at index 0 in the coerced array, not 5. Holy broken taco truck PHP, how the hell did you ever allow that atrocity?


  • Discourse touched me in a no-no place

    This codebase keeps giving.

    do {} while (writingtofile==1);     // busy wait for file to finish being updated if in-flight
    

    Naturally, the writingtofile variable is not volatile, and is also actually a tri-state “boolean”…



  • @onyx said in WTF Bites:

    From PHP changelog:

    5.2.2	DateTime object comparison with the comparison operators changed to work as expected.
            Previously, all DateTime objects were considered equal (using ==).
    

    :facepalm:

    I'm not surprised that comparisons didn't work before (there's probably some DateTime_compare_real function that does it, or you're just supposed to get the numeric timestamp for each of them and compare those). But I would like to see the type wrangling that took place in order for it to say that two DateTimes were equal...


  • BINNED

    @anotherusername said in WTF Bites:

    But I would like to see the type wrangling that took place in order for it to say that two DateTimes were equal...

    It was a singleton and individual "objects" where just an array that would get pulled from when you requested getTimestamp() or whatever 🚎



  • @anotherusername said in WTF Bites:

    But I would like to see the type wrangling that took place in order for it to say that two DateTimes were equal...

    Maybe it's javascript style: DateTime = [object Object] => [object Object] == [object Object]



  • @hungrier Javascript inherently uses the object's valueOf method to convert non-primitive types to primitive types for comparison; for a DateTime, it returns the timestamp (an integer, so comparisons work). If an object doesn't have a valueOf method (or, the valueOf method doesn't return a primitive type -- all objects inherit the default valueOf method, which returns the object, so it's not a primitive type), then yes, it falls back on the object's toString method instead, but even then for a DateTime that would return an actual date-time string, not a generic [object Object] (although, comparisons wouldn't work as expected, because it starts with the abbreviation for the day of the week). Anyway, if anything, I'd expect them to be not equal... hence my curiosity.



  • @onyx said in WTF Bites:

    @arantor said in WTF Bites:

    @onyx and then you realise 7.1 broke DateTime in a backwards incompatible way by making it microsecond precision under the hood.

    I'd hazard to say that, if that matters to your code, you're :doing_it_wrong:

    Seriously though, unless they fucked up getTimestamp and it now returns microseconds instead of seconds, why should it matter?

    ...

    They did, didn't they?

    See for yourself what they dun fucked up.



  • @onyx this isn't new. call_user_func doesn't do references, call_user_func_array is given an array which can contain references. But ISTR the caller and receiver should both indicate reference passing.

    In general references are hard and solely misunderstood by the PHP community.



  • @onyx re arrays, it isn't quite what you'd think. In the case of $array[5] = 'hello world', giving you the h into that position, this is cromulent and comes from a bad design choice a bit back.

    A string is really a byte array with some pretending that it isn't. You can address a string like an array to pull individual bytes, thus $array[5] is cromulent for the sixth item of an array and also the sixth byte of a string, as compared to the old syntax of $array{5} which IIRC (and I might not) was deprecated for raisins.

    It's only giving shit for type coercions that are fucktarded. I don't object to the 7.1 behaviours but I only a few times ever had to deal with code broken by this stuff, because I never worked on code that shitty to start with.



  • @arantor yeah, but using 0x20 bytes to fill in used-without-being-initialized memory locations, by default? That seems pretty... arbitrary...


Log in to reply