phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

PHP5 and PHPBB2 - whats the official?

Goto page 1, 2  Next
 
Search this topic... | Search phpBB2 Discussion... | Search Box
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Author Message
JLA
Board Member



Joined: 30 Apr 2009

Posts: 298
Location: U.S.A


flag
PostPosted: Tue Aug 23, 2011 2:55 am 
Post subject: PHP5 and PHPBB2 - whats the official?

So anyone running PHP5 with PHPBB2? Are there changes that need to be made anywhere so things don't break?

What PHP 5 versions will work.

Reason I'm asking is we want a non-thread safe binary and php4 doesn't seem to have one (WIN)

_________________
http://www.jlaforums.com
Back to top
Salvatos
Board Member



Joined: 19 Feb 2009

Posts: 414
Location: Québec


flag
PostPosted: Tue Aug 23, 2011 4:58 am 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

My host seems to be running PHP 5.2.17 and I haven't noticed anything wrong with phpBB nor made any relevant change to it that I can remember (and if I did have to update something, it must have been very easy and a long time ago).
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 298
Location: U.S.A


flag
PostPosted: Tue Aug 23, 2011 3:55 pm 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

Salvatos wrote:
My host seems to be running PHP 5.2.17 and I haven't noticed anything wrong with phpBB nor made any relevant change to it that I can remember (and if I did have to update something, it must have been very easy and a long time ago).


Thanks for the input. Anyone else have any input?

_________________
http://www.jlaforums.com
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 621
Location: Spain


flag
PostPosted: Tue Aug 23, 2011 4:33 pm 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

5.2.17 here, no probs at all.
_________________
phpBB2 will never die, I hope!
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 298
Location: U.S.A


flag
PostPosted: Wed Aug 24, 2011 4:33 am 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

Thanks for the input. Anyone else?
_________________
http://www.jlaforums.com
Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 83
Location: Stolpen, Saxony, Germany


flag
PostPosted: Wed Aug 24, 2011 11:58 am 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

Also phpBB2 with its old PHP4 Code runs fine out of the box on a PHP5 installation, 5.0.x-5.2.x run without much changes in the php.ini, mostly the object reference handling with the keyword "new" and the "&", emulating the old behavior of PHP4.

Some older MODs however aren't compatible in PHP5, they need code rewrites on some parts ("Smilie Categories" for example).

I'm running several installations on 2 different PHP versions:
1 phpBB 2.0.23 on PHP5.3 (vanilla)
7 phpBB 2.0.23 on PHP5.2.x (partly heavy modded)
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 298
Location: U.S.A


flag
PostPosted: Wed Aug 24, 2011 6:06 pm 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

StarWolf3000 wrote:
Also phpBB2 with its old PHP4 Code runs fine out of the box on a PHP5 installation, 5.0.x-5.2.x run without much changes in the php.ini, mostly the object reference handling with the keyword "new" and the "&", emulating the old behavior of PHP4.

Some older MODs however aren't compatible in PHP5, they need code rewrites on some parts ("Smilie Categories" for example).

I'm running several installations on 2 different PHP versions:
1 phpBB 2.0.23 on PHP5.3 (vanilla)
7 phpBB 2.0.23 on PHP5.2.x (partly heavy modded)


Could you please share the php.ini changes required. We currently run 4.4.9 on Win with FastCGI and eaccelerator

_________________
http://www.jlaforums.com
Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 83
Location: Stolpen, Saxony, Germany


flag
PostPosted: Thu Aug 25, 2011 10:18 am 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

Code:
zend.ze1_compatibility_mode = 1

PHP Manual wrote:
Enable compatibility mode with Zend Engine 1 (PHP 4). It affects the cloning, casting (objects with no properties cast to FALSE or 0), and comparing of objects. In this mode, objects are passed by value instead of reference by default.

Quote:
This feature has been DEPRECATED and REMOVED as of PHP 5.3.0.


This is for some old 4.x scripts that use the object cloning with "&" which is deprecated since 5.0.

When installed onto 5.3, you should set the "date" timezone in the php.ini, because there have been some changes since 5.3 and the timezone (and optionally default_latitude, default_longitude, sunrise_zenith and sunset_zenith can be set) is needed in 5.3 if there are date/time functions used. Defaults to "Europe/London" or "Europe/Paris", I set it to "Europe/Berlin".

The "mysql" extension should be enabled, either with libmysql or mysqlnd, MySQLi isn't supported in 2.x.
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 298
Location: U.S.A


flag
PostPosted: Wed Aug 31, 2011 5:16 pm 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

Hi again,

Now regarding PHP 5.2.X. We tried an install of 5.2.x from the IIS Web platform installed and we were seeing this error afterwards

Call to undefined function: mysql_connect(). Please install the MySQL Connector for PHP

Everything works fine when going back to PHP 4.4.9

_________________
http://www.jlaforums.com
Back to top
Salvatos
Board Member



Joined: 19 Feb 2009

Posts: 414
Location: Québec


flag
PostPosted: Wed Aug 31, 2011 11:17 pm 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

The only relevant page I found about this says:

Quote:
I finally solved this problem, by copying my PHP.ini file to where its looking for it (see phpinfo) it suddenly worked...

Configuration File (php.ini) Path is where I copied the php file to.


I'm not actually sure what they mean, but maybe you can investigate your php.ini and your phpinfo. I'm guessing phpinfo shows a Configuration File Path entry and their php.ini wasn't actually there so they had to move it.
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 298
Location: U.S.A


flag
PostPosted: Thu Sep 01, 2011 1:59 am 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

Salvatos wrote:
The only relevant page I found about this says:

Quote:
I finally solved this problem, by copying my PHP.ini file to where its looking for it (see phpinfo) it suddenly worked...

Configuration File (php.ini) Path is where I copied the php file to.


I'm not actually sure what they mean, but maybe you can investigate your php.ini and your phpinfo. I'm guessing phpinfo shows a Configuration File Path entry and their php.ini wasn't actually there so they had to move it.


Thanks, I'll investigate this and let you know

_________________
http://www.jlaforums.com
Back to top
dondino
Board Member



Joined: 09 Dec 2008

Posts: 144


flag
PostPosted: Mon Sep 05, 2011 1:34 pm 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

In my heavily modded phpbb2 board
I am using php version = 5.3.5
and I have no problems at all

I should update to 5.3.8 soon anyway, since should be the most stable now
Back to top
lumpy burgertushie
Board Member



Joined: 19 Nov 2008

Posts: 214


flag
PostPosted: Sun Sep 11, 2011 12:54 am 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

JLA wrote:
Salvatos wrote:
The only relevant page I found about this says:

Quote:
I finally solved this problem, by copying my PHP.ini file to where its looking for it (see phpinfo) it suddenly worked...

Configuration File (php.ini) Path is where I copied the php file to.


I'm not actually sure what they mean, but maybe you can investigate your php.ini and your phpinfo. I'm guessing phpinfo shows a Configuration File Path entry and their php.ini wasn't actually there so they had to move it.


Thanks, I'll investigate this and let you know


your problem is that you have to tell php to use mysql . it is not setup by default any longer.

check with php.net about how to do this stuff.


robert
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 298
Location: U.S.A


flag
PostPosted: Fri Sep 16, 2011 11:20 pm 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

JLA wrote:
Hi again,

Now regarding PHP 5.2.X. We tried an install of 5.2.x from the IIS Web platform installed and we were seeing this error afterwards

Call to undefined function: mysql_connect(). Please install the MySQL Connector for PHP

Everything works fine when going back to PHP 4.4.9


Here is a response we received regarding the MYSQL issue. Anyone have any comment or experience with the same issue?

Quote:
The mysql_connect() related error will be because the MySQL extension is built into PHP 4 and in PHP 5 you need to enabled it as a PECL extension.

_________________
http://www.jlaforums.com
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 298
Location: U.S.A


flag
PostPosted: Sat Sep 17, 2011 5:52 pm 
Post subject: Re: PHP5 and PHPBB2 - whats the official?

Ok, so some progress but still at a roadblock.

I found the PECL extensions (NTS) for PHP 5.2.x and was able to get rid of the MYSQL error. Some other sites that run PHP on this server seem to run fine with the new PHP 5.2.17 NTF (with FastCGI) but we are still not able to run the phpbb forum due to some errors. They are below. I commented/changed out some paths in the errors for security reasons

Quote:

Warning: include(./extension.inc) [function.include]: failed to open stream: No such file or directory in x:\directory\site\index.php on line 26

Warning: include() [function.include]: Failed opening './extension.inc' for inclusion (include_path='.;C:\php5\pear') in x:\directory\site\index.php on line 26

******
**THE REFERENCE TO PHP5\pear comes from ??? we do not have that directory and it does not show in the system path*****
******

Notice: Undefined variable: phpEx in x:\directory\site\index.php on line 27

Warning: include(./common.) [function.include]: failed to open stream: No such file or directory in x:\directory\site\index.php on line 27

Warning: include() [function.include]: Failed opening './common.' for inclusion (include_path='.;C:\php5\pear') in x:\directory\site\index.php on line 27

Fatal error: Call to undefined function encode_ip() in x:\directory\site\file.php on line 22


Here is some info from the php info page when php 5.2.17 is running

Quote:

PHP Version 5.2.17

System Windows NT TESTBOX 5.2 build 3790
Build Date Jan 6 2011 17:34:09
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-snapshot-template=d:\php-sdk\snap_5_2\vc6\x86\template" "--with-php-build=d:\php-sdk\snap_5_2\vc6\x86\php_build" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--without-pi3web"
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path x:\directory
Loaded Configuration File x:\directory\php.ini
Scan this dir for additional .ini files (none)
additional .ini files parsed (none)
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen On On
allow_url_include Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors On On
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log syslog syslog
error_prepend_string no value no value
error_reporting 6143 6143
expose_php Off Off
extension_dir c:\php\ext c:\php\ext
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .;C:\php5\pear .;C:\php5\pear
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_file_uploads 20 20
max_input_nesting_level 64 64
max_input_time 60 60
memory_limit 128M 128M
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 300M 300M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals Off Off
register_long_arrays Off Off
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path no value no value
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 300M 300M
upload_tmp_dir x:\directory\site\directory x:\directory\site\directory
user_dir no value no value
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode On On


_________________
http://www.jlaforums.com
Back to top
Display posts from previous:   
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Page 1 of 2 All times are GMT
Goto page 1, 2  Next
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0212 seconds using 15 queries. (SQL 0.0014 Parse 0.0007 Other 0.0192)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo