Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Stuart, FL
    Plugin Contributions

    Default PHP 7.4: Nesting ternary operators without explicit parentheses is deprecated

    As described here, with the following example:
            // Code like
            $a ? $b : $c ? $d : $e
            // should be replaced by (current interpretation)
            ($a ? $b : $c) ? $d : $e
            // or (likely intended interpretation)
            $a ? $b : ($c ? $d : $e)
    Posting here because I've seen such constructs, but can't remember where.

  2. #2
    Join Date
    Jan 2004
    Blog Entries
    Plugin Contributions

    Default Re: PHP 7.4: Nesting ternary operators without explicit parentheses is deprecated

    Zen Cart core code has already addressed that.

    But of course, plugins and other code-snippets posted around the forum may not have.

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.



Similar Threads

  1. Replies: 15
    Last Post: 4 Sep 2014, 01:44 PM
  2. Replies: 0
    Last Post: 16 Oct 2010, 10:16 PM
  3. Replies: 2
    Last Post: 21 Aug 2010, 09:13 PM
  4. Replies: 2
    Last Post: 3 Mar 2010, 12:53 PM
  5. Replies: 4
    Last Post: 16 Jan 2010, 02:11 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Zen-Cart, Internet Selling Services, Klamath Falls, OR