Tag: php7.4

  • __DIR__ vs dirname( __FILE__ )

    __DIR__ vs dirname( __FILE__ )

    Calling a constant should always be faster than a function call, right? PHP contains two different ways to get the directory that a file is currently in. __DIR__ is a magic constant added to PHP in 5.3. The official PHP documentation specifically states: “This is equivalent to dirname(__FILE__).” Equivalent in return doesn’t necessarily mean equivalent in…

  • This might be the first post ever published on WordPress using PHP7.4.

    This might be the first post ever published on WordPress using PHP7.4.

    I have every reason to believe that this is the first post ever published on WordPress using PHP7.4. It’s likely coming a bit premature, but if you aren’t willing to have some fun, then why maintain upstream language compatibility of an open source project. I’ve worked on php version support in WordPress since PHP7.0 and…

  • My friend’s Dads

    I can’t say I knew John well, but his son has been a part of my life for half of it and for so much of that, my best friend. I can’t even say I knew John well, but his presence in my life provided a fewstrong and distinct memory. Dan became a friend that…