Using PHP 5.4?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Using PHP 5.4?

Postby Venga » 15. June 2015 15:21

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
Venga
 
Posts: 5
Joined: 15. June 2015 15:19
Operating System: Windows 7 Professional 64-bit

Re: Using PHP 5.4?

Postby Nobbie » 15. June 2015 16:43

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.
Nobbie
 
Posts: 8772
Joined: 09. March 2008 13:04

Re: Using PHP 5.4?

Postby mark.mcdonald » 15. June 2015 16:57

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?
mark.mcdonald
 
Posts: 160
Joined: 13. March 2015 15:48
Location: Edmonton
Operating System: Windows Server 2012 R2

Re: Using PHP 5.4?

Postby Venga » 15. June 2015 18:04

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?
Venga
 
Posts: 5
Joined: 15. June 2015 15:19
Operating System: Windows 7 Professional 64-bit

Re: Using PHP 5.4?

Postby mark.mcdonald » 15. June 2015 18:24

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.
mark.mcdonald
 
Posts: 160
Joined: 13. March 2015 15:48
Location: Edmonton
Operating System: Windows Server 2012 R2

Re: Using PHP 5.4?

Postby Venga » 16. June 2015 10:02

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>
Venga
 
Posts: 5
Joined: 15. June 2015 15:19
Operating System: Windows 7 Professional 64-bit

Re: Using PHP 5.4?

Postby Nobbie » 16. June 2015 11:06

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.
Nobbie
 
Posts: 8772
Joined: 09. March 2008 13:04

Re: Using PHP 5.4?

Postby Venga » 16. June 2015 11:57

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...
Venga
 
Posts: 5
Joined: 15. June 2015 15:19
Operating System: Windows 7 Professional 64-bit

Re: Using PHP 5.4?

Postby Nobbie » 16. June 2015 13:16

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
Nobbie
 
Posts: 8772
Joined: 09. March 2008 13:04

Re: Using PHP 5.4?

Postby Venga » 16. June 2015 14:25

both didn't work... :(
Venga
 
Posts: 5
Joined: 15. June 2015 15:19
Operating System: Windows 7 Professional 64-bit

Re: Using PHP 5.4?

Postby JJ_Tagy » 16. June 2015 15:44

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.
JJ_Tagy
 
Posts: 678
Joined: 30. January 2012 13:44
Operating System: Windows 10 Pro x64

Re: Using PHP 5.4?

Postby Nobbie » 16. June 2015 16:33

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.
Nobbie
 
Posts: 8772
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 48 guests