vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Php 5.3 (https://vborg.vbsupport.ru/showthread.php?t=204795)

odln018 02-09-2009 06:25 PM

Php 5.3
 
Has anyone been able to get Vbulletin 3.8.1 to work under PHP 5.3?

nexialys 02-09-2009 06:47 PM

sure, why?

odln018 02-09-2009 06:53 PM

Drat. I seem to be having a bear of a problem then. I'm running IIS 7, MySQL 5.1.30.

The site works just great under PHP 5.2.8, but when I try to run 5.3, I'm having no luck.

PHPInfo will come up fine, but anything else that is running will not.



These are the errors I'm getting:

Code:

PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 49
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 101
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 105
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 113
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 124
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 128
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 136
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 205
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 383
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\class_core.php on line 2529
PHP Fatal error:  Maximum execution time of 60 seconds exceeded in D:\Websites\ToE\Forum\includes\class_core.php on line 3204


Paul M 02-09-2009 07:10 PM

What error reporting level do you have set ?

The Deprected messages are just warnings afaik.

See http://uk3.php.net/manual/en/errorfunc.constants.php

odln018 02-09-2009 07:15 PM

I moved it to E_ERROR, but am still getting deprecated errors.

Would it help if I posted my PHP.INI?

Dismounted 02-10-2009 05:30 AM

Quote:

Originally Posted by odln018 (Post 1738983)
I moved it to E_ERROR, but am still getting deprecated errors.

That's because vBulletin "messes" with the error reporting level in every file. Add this to the end of your config.php:
PHP Code:

error_reporting(E_ERROR); 


odln018 02-10-2009 12:28 PM

Made the change, and am getting this:

Quote:

PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 49
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 101
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 105
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 113
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 124
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 128
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 136
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 205
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 383
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\class_core.php on line 2529
PHP Fatal error: Maximum execution time of 60 seconds exceeded in D:\Websites\ToE\Forum\includes\class_core.php on line 3204
It's only when I'm using PHP 5.3 that I get any kind of timeouts.

Marco van Herwaarden 02-10-2009 12:30 PM

Then don't use beta software.

odln018 02-10-2009 12:32 PM

That's very helpful, thank you.

Voltar 02-10-2009 03:21 PM

Well, Marco does have a point. PHP 5.3.0 is still in the beta stage, beta 1 to be exact. It hasn't even made it to a RC yet. That's not to say that it isn't stable or usable though.

Unless you really have a need for namespaces or any of the other new features, you would be better off with 5.2.8.

As far as your 'error' is concern, using a reference, =&,to assign a variable to a new class/object? seems to throw up E_DEPRECATED (which was added in 5.3).


All times are GMT. The time now is 07:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01047 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete