Page 1 of 1

Using PHP 5.4?

PostPosted: 15. June 2015 15:21
by Venga
Hi guys,

I downloaded XAMPP 5.6.3 but I wanna use PHP 5.4... Seraching on Google didn't work.

How?

Thanks in advance,
Venga.

---

XAMPP 5.6.3
Windows 7 Professional 64-bit

Re: Using PHP 5.4?

PostPosted: 15. June 2015 16:43
by Nobbie
Venga wrote:Seraching on Google didn't work.


It worked for me. I simply entered "Xampp PHP 5.4" and got tons of usefull hints.

Re: Using PHP 5.4?

PostPosted: 15. June 2015 16:57
by mark.mcdonald
Would it not make more sense to download a lower xampp version that contains php 5.4? Why would you not want to use a higher version of php with bug fixes and improvements?

Re: Using PHP 5.4?

PostPosted: 15. June 2015 18:04
by Venga
Well, I'm going to install vBulletin 5.0.5 but I get an error, which says I have to use PHP 5.4 so...

Can I run in in 5.6.3?

Re: Using PHP 5.4?

PostPosted: 15. June 2015 18:24
by mark.mcdonald
http://www.vbulletin.com/forum/forum/vbulletin-announcements/vbulletin-announcements_aa/4321094-vbulletin-5-1-7-connect-is-now-available
vBulletin wrote:PHP Minimum Version: PHP 5.4.0

The latest version of xampp or 5.6.3 (my personal favorite so far) will support vBulletin v5.X and yes it will work in 5.6.3
What error do you get when trying to install.

Re: Using PHP 5.4?

PostPosted: 16. June 2015 10:02
by Venga
ACTION REQUIRED:

Unexpected Text:
<br />
<b>Deprecated</b>: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in <b>C:\xampp\htdocs\vBulletin5\core\includes\functions.php</b> on line <b>4369</b><br />
<?xml version="1.0" encoding="windows-1252"?>
<upgrade>
<message replace="0">Connection successful</message>
<status>Status: Installing, Step 2 of 6</status>
<longversion>install</longversion>
<version>install</version>
<nextstep>2</nextstep>
<upgradenotice><![CDATA[<strong>Installing</strong>]]></upgradenotice>
</upgrade>

Re: Using PHP 5.4?

PostPosted: 16. June 2015 11:06
by Nobbie
Venga wrote:<b>Deprecated</b>: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in <b>C:\xampp\htdocs\vBulletin5\core\includes\functions.php</b> on line <b>4369</b><br />


Simply change the error level and/or error_reporting in php.ini. Edit php.ini and look for E_DEPRECATED for example and read all the comments. After changing php.ini restart Apache.

Re: Using PHP 5.4?

PostPosted: 16. June 2015 11:57
by Venga
Where can I find php.ini?

EDIT: Found it :)

But I don't know what to edit... in line 535:
Code: Select all
error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT


I placed a ; before it but it didn't work...

Re: Using PHP 5.4?

PostPosted: 16. June 2015 13:16
by Nobbie
Venga wrote:I placed a ; before it but it didn't work...


Of course not, you have to assign a value, the Default Value (also documented in php.ini) is not 0. Try

Code: Select all
error_reporting = 0


or (for "real" severe errors):

Code: Select all
error_reporting = E_ERROR

Re: Using PHP 5.4?

PostPosted: 16. June 2015 14:25
by Venga
both didn't work... :(

Re: Using PHP 5.4?

PostPosted: 16. June 2015 15:44
by JJ_Tagy
If you already have error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT (which looks right) then either your application modifies reporting or your system is using a different php.ini configuration file.

Re: Using PHP 5.4?

PostPosted: 16. June 2015 16:33
by Nobbie
Finally, i think it would be better to ask for vBulletin Support, how to switch off the error reporting. vBulletin obviously overrides the php.ini Settings.