Koozali.org: home of the SME Server

Re PHP 5.3

Offline compsos

  • *
  • 472
  • +0/-0
Re PHP 5.3
« on: October 22, 2011, 09:34:19 AM »
Hi Jeff
You probably already know this but just in case you have not looked at it.

To solve a Zarafa 7.0.2 problem we updated PHP to 5.3.3 from smeupdates-testing. All is fine except the tftpSQL.php uses the split function which has been discontinued in 5.3
http://php.net/manual/en/function.split.php
The error message is
Code: [Select]
php: PHP Deprecated:  Function split() is deprecated in /opt/sark/generator/tftpSQL.php on line 69
It is this line
Code: [Select]
                $files = split ("\n]",$row['provision']);

The replacement code is at http://www.php.net/manual/en/book.pcre.php

Let me know if you want some modifications tested.
Regards

Gordon............

Offline gregswallow

  • *
  • 651
  • +1/-0
Re: Re PHP 5.3
« Reply #1 on: October 22, 2011, 11:47:04 AM »
Deprecated functions in 5.3 should still work.  It is just an additional warning that it will not work in a future version of php (6?).