Announcement

Collapse
No announcement yet.

What are the Latest PHP & MySQL or MariaDB Versions Supported?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What are the Latest PHP & MySQL or MariaDB Versions Supported?

    What are the Latest PHP & MySQL or MariaDB Versions Supported with Vbulletin 4.2.5?

  • #2
    PHP 7.1.X
    MySQL 5.7 and whatever the MariaDB equivalent is.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment


    • #3
      Thank you!

      Comment


      • #4
        Will it work with PHP 5.6? I have that and 7.3+ available to me, but not 7.1.
        ~ Life isn't always fair, but you can be. ~

        Comment


        • #5
          vBulletin 4.2.5 will work with PHP 5.6.X.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment


          • #6
            There is a dramatic performance difference when running vBulletin under PHP 7.x vs PHP5.x
            -----------------------------------------------------------
            Running custom version of vBulletin based on v4.2.5
            PHP 7.4.14 :: MariaDB 10.5.8

            Comment


            • #7
              [delete]

              I misspoke, this reply is useless. lol
              ~ Life isn't always fair, but you can be. ~

              Comment


              • #8
                Originally posted by Wayne Luke View Post
                vBulletin 4.2.5 will work with PHP 5.6.X.
                What exactly would it take to make it work with PHP 7.4.x? Not asking you to do it for me, just wondering what parts of PHP or vB code would I need to target?
                ~ Life isn't always fair, but you can be. ~

                Comment


                • #9
                  What exactly would it take to make it work with PHP 7.4.x?
                  1. MySQL Safe Mode changes (basically have to remove most support for this)
                  2. Fix unquoted strings
                  3. Fix double-quoted strings (mainly in templates)
                  4. Add Countable interface to a lot of methods.
                  5. Remove the "continue;" keyword from switch code and replace with "break;"
                  6. Update cURL calls to use HTTP2.
                  7. Update ternary operations to use parenthesis properly.
                  8. Remove curly braces for string offsets.
                  9. Replace all use of the array_walk() function.
                  10. Some Variable declarations.
                  11. Some Method returns.
                  12. Autoloading changes.
                  13. General Syntax changes.
                  More information can be found here:
                  7.2 PHP: Backward incompatible changes - Manual
                  7.3 PHP: Backward Incompatible Changes - Manual
                  7.4 PHP: Backward Incompatible Changes - Manual

                  Since vBulletin 4.X doesn't have unit tests to automatically test the code, I wouldn't even know where to start looking. You would have to manually go through every file and constantly review your PHP error log. You can't really grep for unquoted strings. Double quoted strings only appear at run time from things like {vb:var array.'varname'}. Grepping for curly braces {} will not be useful... etc...
                  Last edited by Wayne Luke; Mon 25 Jan '21, 8:17am.
                  Translations provided by Google.

                  Wayne Luke
                  The Rabid Badger - a vBulletin Cloud demonstration site.
                  vBulletin 5 API

                  Comment


                  • #10
                    Oh, is that all? LOL.

                    Thanks, Wayne. Looks like a good side project in my spare time. Fortunately I have a good bit of it.
                    ~ Life isn't always fair, but you can be. ~

                    Comment


                    • #11
                      Originally posted by cbiweb View Post
                      Oh, is that all? LOL.

                      Thanks, Wayne. Looks like a good side project in my spare time. Fortunately I have a good bit of it.
                      FWIW, there are some people over on vBulletin.org who claim to have done this already. You may want to speak with one or more of them.

                      This comes with the usual disclaimer about not being responsible if anything they recommend breaks your site.

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...
                      X