View Full Version : Php 5.3
odln018
02-09-2009, 06:25 PM
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:
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
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:
error_reporting(E_ERROR);
odln018
02-10-2009, 12:28 PM
Made the change, and am getting this:
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).
odln018
02-10-2009, 03:33 PM
Oh, I understand completely, and am running 5.2.8 in my production environment. As my initial post indicated, I was curious to see if anyone had actually gotten VB to work with 5.3. My concern was if I had some type of configuration issue since other's have been able to run it with VB.
Voltar
02-10-2009, 03:37 PM
If that is the only error that you're getting, you could suppress it in php.ini.
odln018
02-10-2009, 03:42 PM
Well, I think I've got other issues, even if I suppress the error, the board still doesn't load.
Seems I may have some connectivity issues with the DB.
Voltar
02-10-2009, 03:47 PM
Does PHP always die at the same point?
PHP Fatal error: Maximum execution time of 60 seconds exceeded in D:\Websites\ToE\Forum\includes\class_core.php on line 3204
odln018
03-20-2009, 05:22 PM
Well, I've been doing some tinkering. I was having issues with other PHP apps, they were timing out connecting to the database.
In my research, I discovered that PHP 5.3, and Windows Server 2008 (as well as Vista), have issues resolving "Local host". I also discovered that in the hosts file, there is an entry "::1 localhost". If you comment out this entry, you can successfully connect most of your PHP scripts to the DB. Of course, I'm still having issues with VBulletin.
Here's what it's doing now.
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
I've changed the database server name in the /includes/config.php to "127.0.0.1", but with no change. I'm wondering if there is another location I should change the "localhost" setting to 127.0.0.1
Just thought I would see if anyone else had any thoughts.
odln018
04-09-2009, 01:13 AM
Thought I would bump this.
I've gotten all of the PHP apps I run to work except for vbulletin, undert PHP 5.3 beta 2. When I even try to kick off a fresh install of Vbulletin, I get this exact sequence of error messages.
I'm not sure if I'm finding the right place to suppress the messages, though.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.