PHP 5.3

PHP 5.3

Postby italian_user on Wed Sep 29, 2010 7:57 am

Hello!

My Hosting are moving his server from PHP 5.2 to PHP 5.3.

Will I have problems with LifeType?

Thanks very much.
italian_user
 
Posts: 193
Joined: Mon Apr 03, 2006 1:37 pm
LifeType Version: 1.2.11

Re: PHP 5.3

Postby jondaley on Wed Sep 29, 2010 11:06 am

I haven't upgraded my server that has lifetype on it, so I am not positive, but I think I did some testing on php5.3 a while back.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: PHP 5.3

Postby newtech1 on Mon Oct 04, 2010 12:53 pm

Does anyone know if there are any conflicts with LT 1.2.9 with PHP 5.2.13?

Does anyone know if there are any conflicts with LT 1.2.9 with PHP 5.3?

I am currently running PHP 5.2.9 and I must upgrade to at least PHP 5.2.13 to meet the guidelines for an oscommere site. When I ugrade my PHP I don't want to 'break by LT installaion or have bugs.
Richard D'Andrea Dover
http://www.christianblogsites.com
newtech1
 
Posts: 593
Joined: Thu Oct 13, 2005 12:02 am
Location: Seattle, WA, USA

Re: PHP 5.3

Postby italian_user on Tue Oct 05, 2010 4:18 pm

HI newtech1!
I have "PHP Version 5.2.13" since much time and all it's ok!
You can upgrade from 5.2.9 to 5.2.13 quite! ;-)

....If You find some notice from anyone about PHP 5.3, tell me it soon, 'cause my hosting server are upgrading soon!


bye!
Elisabetta
italian_user
 
Posts: 193
Joined: Mon Apr 03, 2006 1:37 pm
LifeType Version: 1.2.11

Re: PHP 5.3

Postby newtech1 on Wed Oct 06, 2010 12:36 am

My understanding is that 5.3 is enough different that there is almost for sure some problems with it working with many different types of scripts.
newtech1
 
Posts: 593
Joined: Thu Oct 13, 2005 12:02 am
Location: Seattle, WA, USA

Re: PHP 5.3

Postby newtech1 on Wed Oct 06, 2010 9:57 am

Here is a list of changes with PHP 5.3. Goobly gook to me, but maybe a LT developer will be able to tell if any of this stuff could affect LT.
3 UPGRADE NOTES - PHP 5.3
4
5 1. Reserved words and classes
6 2. Changes made to existing functions
7 3. Changes made to existing methods
8 4. Changes made to existing classes
9 5. Deprecated
10 6. Undeprecated
11 7. Extensions:
12 a. moved out to PECL and actively maintained there
13 b. no longer maintained
14 c. with changed behaviour
15 d. no longer possible to disable
16 8. Changes in SAPI support
17 9. Changes in INI directives
18 10. Syntax additions
19 11. Windows support
20 12. New in PHP 5.3:
21 a. New libraries
22 b. New extensions
23 c. New stream wrappers
24 d. New stream filters
25 e. New functions
26 f. New global constants
27 g. New classes
28 h. New methods
29 i. New class constants
30
31 =============================
32 1. Reserved words and classes
33 =============================
34
35 - **namespace** and **goto** are now reserved keywords.
36
37 - **Closure** is now a reserved class. (Used by lambda and closure.)
38
39 =====================================
40 2. Changes made to existing functions
41 =====================================
42
43 - The HTTP stream wrapper now considers all status codes from 200 to 399 to be
44 successful.
45
46 - The array functions natsort(), natcasesort(), usort(), uasort(), uksort(),
47 array_flip(), and array_unique() no longer accept objects passed as arguments.
48 If you need to use them to access an object's properties, you must cast the
49 object to an array first.
50
51 - var_dump() output now includes private object members.
52
53 - session_start() now returns FALSE when the session startup fails.
54
55 - property_exists() now checks the existence of a property independent of
56 accessibility (like method_exists()).
57
58 - The $initial parameter for array_reduce can now be of any type.
59
60 - clearstatcache() no longer clears the realpath cache by default.
61
62 - realpath() is no longer system-dependent and works identically on all
63 platforms.
64
65 - call_user_func() now propagates $this even if the callee is the parent class.
66
67 - The filesystem functions opendir(), scandir(), and dir() now use the default
68 context if no context argument is passed.
69
70 - The behaviour of functions with by-reference parameters called by value has
71 changed. Where previously the function would accept the by-value argument, a
72 warning is now emitted and all by-ref parameters are set to NULL.
73
74 - There is now native support for the following math functions: asinh(),
75 acosh(), atanh(), log1p(), and expm1().
76
77 - In the GD extension, there is now pixelation support available through
78 the imagefilter() function.
79
80 - crypt() now has Blowfish and extended DES support, and crypt() features are
81 now 100% portable. PHP has its own internal crypt implementation which drops
82 into place when system support for crypt or crypt_r() is not found.
83
84 - get_cfg_var() is now able to return "array" INI options.
85
86 - Stream wrappers can now be used by the include_path INI directive.
87
88 - These functions now take new parameters:
89 clearstatcache(): $clear_realpath_cache and $filename.
90 copy(): $context
91 fgetcsv(): $escape
92 ini_get_all(): $details
93 json_encode(): $options
94 json_decode(): $depth
95 nl2br(): $is_xhtml
96 parse_ini_file(): $scanner_mode
97 round(): $mode
98 stream_context_create(): $params
99 strstr(), stristr(): $before_needle
100 sybase_connect(): $new
101
102 - And new mode option for fopen: 'n' (O_NONBLOCK)
103
104 - The new mysqlnd library necessitates using MySQL's newer 41-byte password
105 format. Continued use of the old 16 byte passwords will cause mysql_connect()
106 and other related functions to produce the following error message:
107 "mysqlnd cannot connect to MySQL 4.1+ using old authentication"
108
109 - The dl() function is now disabled by default, and only available under the
110 cli, cgi, and embed SAPIs.
111
112 - mail() now supports the logging of sent mail.
113
114 - stream_select(), stream_set_blocking(), stream_set_timeout(), and
115 stream_set_write_buffer() now work with user-space stream wrappers.
116
117 - getopt() accepts "long options" now on all platforms.
118 Optional values and using = as a separator for short options are now
119 supported.
120
121
122 ===================================
123 3. Changes made to existing methods
124 ===================================
125
126 - The magic methods __get(), __set(), __isset(), __unset(), and __call() should
127 always be public and can no longer be static. Method signatures are enforced.
128
129 - The __call() magic method is now invoked on access to private and protected
130 methods.
131
132 - The __toString() magic method can no longer accept arguments.
133
134 - There is a new magic method, __callStatic().
135
136 - Internal count() vs. count_elements() handler resolution rules have changed.
137 (This could potentially break custom PHP extensions.)
138
139 - The trailing / has been removed from SplFileInfo and other related directory
140 classes.
141
142 - SplFileInfo::getpathinfo() now returns information about the path name.
143
144 - There are new parameters in:
145 Exception::__construct(): $previous
146
147 ===================================
148 4. Changes made to existing classes
149 ===================================
150
151 - SplObjectStorage now has ArrayAccess support. It is also now possible to
152 store associative information with objects in SplObjectStorage.
153
154 =============
155 5. Deprecated
156 =============
157
158 - define_syslog_variables() is deprecated.
159
160 - set_socket_blocking() is deprecated.
161
162 - call_user_method() and call_user_method_array() are now deprecated. Use
163 call_user_func() and call_user_func_array() instead.
164
165 - dl() is deprecated.
166
167 - The set_magic_quotes_runtime() function is now deprecated.
168
169 - mysql_listtables(), mysql_dropdb(), mysql_createdb(), mysql_list_tables(),
170 mysql_drop_db(), and mysql_create_db() are now deprecated.
171
172 - All ereg functions are now deprecated and emit E_DEPRECATED errors:
173 sql_regcase(), spliti(), split(), ereg_replace(), eregi(),
174 ereg_replace(), and ereg().
175 Use the PCRE family of functions (preg_*()) instead.
176
177 - mcrypt_generic_end() is deprecated.
178
179 - mysql_db_query() is deprecated.
180
181 - mysql_escape_string() is deprecated.
182
183 - session_register(), session_unregister(), and session_is_registered() are now
184 deprecated. Use the $_SESSION superglobal array instead.
185
186 - Comments starting with '#' are now deprecated in .INI files.
187
188 - The following INI directives will now emit an E_DEPRECATED warning
189 upon startup if they are activated:
190
191 - define_syslog_variables
192 - register_globals
193 - register_long_arrays
194 - safe_mode
195 - magic_quotes_gpc
196 - magic_quotes_runtime
197 - magic_quotes_sybase
198
199 - The is_dst parameter to mktime() is deprecated.
200
201 - Assigning the return value of "new" by reference is deprecated
202
203 - Call-time pass-by-reference has been deprecated
204
205 - Usage of {} to access string offsets is deprecated
206
207 - Passing locale category name as string to setlocale() is deprecated.
208
209 ===============
210 6. Undeprecated
211 ===============
212
213 - By popular request, is_a() is no longer deprecated.
214
215 ==============
216 7. Extensions:
217 ==============
218
219 a. moved out to PECL and actively maintained there
220
221 - fdf
222 - ming
223 - ncurses
224
225 b. no longer maintained
226
227 - dbase
228 - fbsql
229 - msql
230 - sybase (use sybase_ct, which is still in PHP core)
231 - mhash (hash has full BC layer)
232 - mime_magic (use fileinfo, has full BC layer)
233
234 c. with changed behaviour
235
236 - dns: dns_check_record() will now return an extra "entries" index,
237 containing the TXT elements.
238
239 - datetime: date/time functions will no longer use the TZ environment
240 variable to guess which timezone should be used.
241
242 - cURL now supports SSH
243
244 - hash: The SHA-224 and salsa hash algorithms are now supported.
245
246 - mbstring: Now supports CP850 encoding.
247
248 - oci8: Database Resident Connection Pooling (DRCP) and Fast Application
249 Notification (FAN) are now supported.
250
251 Oracle External Authentication is now supported (except on Windows).
252
253 The oci8 function oci_bind_by_name() now supports SQLT_AFC (aka the
254 CHAR datatype).
255
256 Calling oci_close() on a persistent connection, or when the variable
257 that references a persistent connection goes out of scope, will now
258 trigger a roll back of an uncommitted transaction. To avoid unexpected
259 behavior explicitly issue a commit or roll back as needed. The old
260 behavior can be enabled with the INI directive
261 oci8.old_oci_close_semantics.
262
263 - openssl: OpenSSL digest and cipher functions are now supported.
264 It is also now possible to access the internal values of DSA, RSA and
265 DH keys.
266
267 - session: Sessions will no longer store session-files in "/tmp" when
268 open_basedir restrictions apply, unless "/tmp" is explicitly added to
269 the list of allowed paths.
270
271 - SOAP: Now supports sending user-supplied HTTP headers.
272
273 - MySQLi: Now supports persistent connections by prepending the hostname
274 with "p:".
275
276 d. no longer possible to disable
277
278 - PCRE
279 - Reflection
280 - SPL
newtech1
 
Posts: 593
Joined: Thu Oct 13, 2005 12:02 am
Location: Seattle, WA, USA

Re: PHP 5.3

Postby jondaley on Wed Oct 06, 2010 1:18 pm

Hmm.. that is a lot. if the new parameters to the functions are optional, and are backwards compatible, I would expect they would be okay.

For all of the other stuff, I didn't see anything in particular, but I'm not sure. Can you test it somewhere first? We do run into trouble with the 1.2.x code because we are trying to support both php4 and php5, and that doesn't work very well...
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: PHP 5.3

Postby italian_user on Thu Oct 07, 2010 1:16 pm

Unfortunately I will'test it very soon, 'cause my hosting are changing from 5.2.13 to 5.3.

So, when I'll do the change, I'll can to tell you if there are problems and what!

See you! ;-)
italian_user
 
Posts: 193
Joined: Mon Apr 03, 2006 1:37 pm
LifeType Version: 1.2.11

Re: PHP 5.3

Postby newtech1 on Fri Oct 08, 2010 12:14 am

My hosting support did a quick checkand this was some results:

Did a quick check just looking for 1 ereg_replace depreciated instruction:
plugins/hiddeninput/class/action/pluginhiddeninputupdateconfigaction.class.php
class/net/xmlrpc/xmlrpcserver.class.php
class/gallery/resizers/gallerygdresizer.class.php
class/gallery/getid3/write.metaflac.php
class/gallery/getid3/write.vorbiscomment.php
class/data/textfilter.class.php
newtech1
 
Posts: 593
Joined: Thu Oct 13, 2005 12:02 am
Location: Seattle, WA, USA

Re: PHP 5.3

Postby jondaley on Fri Oct 08, 2010 11:03 am

deprecated, but not removed yet, so that doesn't mean it will break, just means that it will break in the future.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: PHP 5.3

Postby italian_user on Tue Nov 02, 2010 3:43 pm

Hi to everyone!
I'm going to transfer (only for testing) my LT in a server with PHP 5.3.3 installed.

I'll do some test.

Do You want I make something in particular?
italian_user
 
Posts: 193
Joined: Mon Apr 03, 2006 1:37 pm
LifeType Version: 1.2.11

Re: PHP 5.3

Postby thestroller on Wed Dec 01, 2010 12:07 am

I'd upgrade to PHP 5.3.3 yesterday and a lots of errors and warnings occurs, e.g eregi, reg, preg_replace, date,... are deprecated. So I've just moved back to PHP 5.1.6 and everything is ok now.

Regards
thestroller
 
Posts: 80
Joined: Fri Sep 29, 2006 12:05 am

Re: PHP 5.3

Postby jondaley on Thu Dec 02, 2010 3:46 pm

Are you getting any errors, or just the warnings? "deprecated" doesn't mean "unusable", just it won't be usable in a later version.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: PHP 5.3

Postby italian_user on Tue Jan 25, 2011 2:18 pm

Sorry, after the new release of LifeType, in the Roadmap page http://bugs.lifetype.net/roadmap_page.php
I can't find the "php 5.3" problem in the next release (1.2.12 final and/or 2.0 final)

Maybe is it already fixed in this last release (1.2.11)??
italian_user
 
Posts: 193
Joined: Mon Apr 03, 2006 1:37 pm
LifeType Version: 1.2.11

Re: PHP 5.3

Postby jondaley on Wed Jan 26, 2011 11:38 pm

Nothing has been done on this problem. The main thing is that we can't support PHP5.3 and PHP4 with the same code, at least not without major coding headaches - probably like different classes for some of the objects or something. I wonder if we've procrastinated on this change long enough that no one is running php4 any more?

I'm thinking about killing php4 support in the 1.2.x branch, and fixing these bugs. That would mean anyone still running php4 would have to upgrade to php5 in order to get the latest release. We had originally been planning on waiting until 2.0 for that change, but we just haven't had the development time to get it out the door...
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch


Return to Configuration and Installation

cron