Deprecated Function while Running vb_test.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shyuan
    Member
    • Nov 2012
    • 43
    • 5.0.0

    Deprecated Function while Running vb_test.php

    Hi when I run vb_test.php to test things out. I saw this on top.

    Code:
    [B]Deprecated: Function set_magic_quotes_runtime() is deprecated in[B]/home/abcdefgh/public_html/vb_test.php on line [B]21[/B][/B][/B]
    Is there anything that I should do with before running the test? Thank you.
  • Hartmut
    Senior Member
    • Nov 2007
    • 2870
    • 4.2.x

    #2
    What version of PHP are you running? 5.3.0 and higher?
    No private support, only PM me when I ask for it. Support in the forums only.

    Comment

    • Shyuan
      Member
      • Nov 2012
      • 43
      • 5.0.0

      #3
      Hi Hartmut,

      My PHP version is currently 5.3.18. Thanks.

      Comment

      • Hartmut
        Senior Member
        • Nov 2007
        • 2870
        • 4.2.x

        #4
        Then there should be no problem with installating vBulletin 5 Connect; vB5 requires PHP 5.3 or greater.
        No private support, only PM me when I ask for it. Support in the forums only.

        Comment

        • Shyuan
          Member
          • Nov 2012
          • 43
          • 5.0.0

          #5
          Hi Hartmut,

          Everything passed in the test except magic_quotes_gpc and the below is the information given:

          magic_quotes_gpc should be off for optimal performance, ask your host to change this in php.ini
          Should I worry about this? I have a site needs magic_quotes_gpc to be on. Thus I wonder if I can safely ignore this as well?

          Thank you.

          Comment

          • Hartmut
            Senior Member
            • Nov 2007
            • 2870
            • 4.2.x

            #6
            Usually you should not be worried, actually you can turn off magic_quotes_gpc in your php.ini if it causes issues.
            No private support, only PM me when I ask for it. Support in the forums only.

            Comment

            • Shyuan
              Member
              • Nov 2012
              • 43
              • 5.0.0

              #7
              Hi Hartmut,

              Like I mentioned, I need magic_quotes_gpc to be on for another site of mine. So I would like to ensure that both sites (one site need it on and vB need it off) can work well together while it is set to ON.

              Please advice. Thank you

              Comment

              • Yves R.
                vBulletin QA
                • Nov 2003
                • 3861
                • 5.6.X

                #8
                magic_quotes_gpc is obsolete in PHP 5.3.0 and is removed in 5.4.0.


                vBulletin QA - vBulletin Support French - Lead Project Tools developer

                Next release? Soon(tm)

                Comment

                • Wayne Luke
                  vBulletin Technical Support Lead
                  • Aug 2000
                  • 74124

                  #9
                  We prefer it to be disabled in older versions as well. So... You're good.

                  If it is on for vBulletin, we'll turn it off for you.
                  Translations provided by Google.

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

                  Comment

                  • Shyuan
                    Member
                    • Nov 2012
                    • 43
                    • 5.0.0

                    #10
                    Hi Wayne,

                    The magic_quotes_gpc is ON by myself for a non-vBulletin site. Because you guys are much experienced, thus I seek advice to see if vBulletin 5 can run properly even if magic_quotes_gpc is ON.

                    Originally posted by Wayne Luke
                    We prefer it to be disabled in older versions as well. So... You're good.

                    If it is on for vBulletin, we'll turn it off for you.

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 74124

                      #11
                      As I said, we turn it off. The versions of PHP that vBulletin 5 runs on, do not support it though.
                      Translations provided by Google.

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

                      Comment

                      • Shyuan
                        Member
                        • Nov 2012
                        • 43
                        • 5.0.0

                        #12
                        Originally posted by Wayne Luke
                        The versions of PHP that vBulletin 5 runs on, do not support it though.
                        Hi,

                        I am a little confused here but I think I understand.

                        I was told magic_quotes_gpc is deprecated and will be removed soon in PHP5.4. Since you said the PHP version that vB5 runs on doesn't support the magic_quotes_gpc, does this means vb_test.php file hasn't yet been updated for checking vB5's requirements purpose? I supposed the vb_test.php file checks magic_quotes_gpc because of earlier versions like vB4 and has nothing to do with vB5 (means I can ignore that and proceed with the installation)?

                        If my assumptions are correct, then I completely understand now. Kindly confirm Thank you.

                        Comment

                        • Wayne Luke
                          vBulletin Technical Support Lead
                          • Aug 2000
                          • 74124

                          #13
                          Deprecated simply means - We don't support this anymore and it will be removed in the future. Upgrade your scripts to deal with this.

                          As said many times in this thread, vBulletin will run on your server. What you should be worried about is your other script that relies on this and having it updated to modern standards.
                          Translations provided by Google.

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

                          Comment

                          • Shyuan
                            Member
                            • Nov 2012
                            • 43
                            • 5.0.0

                            #14
                            I got that. But what I suggest is, remove magic_quotes_gpc from vb_test.php file (for vb5) so that it won't confuse non-PHP guy like me.
                            Last edited by Shyuan; Thu 6 Dec '12, 3:56am.

                            Comment

                            Related Topics

                            Collapse

                            Working...