Kaltura CE 2.x not compatible with PHP 5.3

Project:Kaltura Community Edition (CE) - Self Hosted Online Video Platform
Category:bug report

PHP 5.3 imposes a few changes and deprecates a few APIs.
To make Kaltura CE compatible on PHP 5.3 the following changes have to be made:
Check code according to php.net migration manual (http://www.PHP.net/manual/en/migration53.php)
Run the Zend 5.2 to 5.3 migration script by Stas Malyshev (http://devzone.zend.com/article/11701-5.2-to-5.3-migration)

The complete run-down:

  • split -> explode (for regular split), preg_split (for regex split)
  • set_magic_quotes_runtime(value) -> ini_set("magic_quotes_runtime", value)
  • ereg('xxx') -> preg_match('/xxx/')
  • eregi('xxx') -> preg_match('/xxx/i')
  • session_unregister -> removed
  • wrap all text values in ini files with double quotes (emails_en.ini)
  • remove bad constructor call (number of variables in the function call do not match the function declaration)

Attached (KalturaCE-PHP5.3-Patch.tgz) is a patch including instructions to make Kaltura CE 2.0.2 compatible with PHP 5.3.

Please try it and report back any issues or updates.

KalturaCE-PHP5.3-Patch1.tgz203.63 KB



Status:active» patch (ready to be committed)


Version:api_v3» api_v3
Assigned to:Anonymous» Ehud
Status:patch (ready to be committed)» fixed


I can't download the attached patch file - getting a 404 error


Depending on how you have applied the patch you might have overwritten some file permissions and owners.
Therefor you need to change them back with chmod and chown be sure to use the recursive switch on both commands

Install Howto

If you have not installed Kaltura CE into /opt/kaltura please change accordingly

cd /opt/
cp -R kaltura kaltura_bak
cd kaltura/
wget http ://www.kaltura.org/sites/default/files/issues/KalturaCE-PHP5.3-Patch1.tgz
-- REMOVE space between http and :// --
tar --overwrite -xvzf KalturaCE-PHP5.3-Patch1.tgz
READ the readme.txt
nano readme.txt
rm readme.txt
cd app/batch/batches/Mailer/
cp ../../../../wrapquotes.php ./
cp emails_en.ini emails_en.ini_org
php wrapquotes.php
mv new-emails_en.ini emails_en.ini
cd /opt/kaltura/
chown root:root -R app/
chmod 775 -r app/
/etc/init.d/apache2 restart


is this patch only accessible to some people with certain access associated to their username?
I'm still being sent to a 404 error page when I click the patch link:





thanks for the update and notes..

I am new to kalturaCE and also linux..
I attempted to install kalturaCE and got to the point where I was warned about not having PHP 5.2 installed...
I could not complete the install and so thought maybe I needed to install the patch first.

When I followed your notes on how to install the patch I got up to the line:
php wrapquotes.php

and after running that command I received the following notifications:

PHP Warning: fopen(emails_en.ini): failed to open stream: No such file or directory in /opt/kaltura/app/batch/batches/Mailer/wrapquotes.php on line 11
PHP Notice: Undefined variable: iIniFile in /opt/kaltura/app/batch/batches/Mailer/wrapquotes.php on line 11
Please validate the script can access the filenick@ubuntu:/opt/kaltura/app/batch/batches/Mailer$

Do you know what I might need to to do get the patch to install?



To install Kaltura CE with PHP > 5.2.0 you need to edit the requirements of the installer.

Go to your local Kaltura CE installation dir and follow these steps

nano config/prerequisites.php

Edit the line with

'php' => array('<', '5.2.0'),


'php' => array('<', '5.6.0'),

All done

@ tunist first delete the old install folder and than extract it new so you can be sure not to have changed something you didn't want to :-)


Ah thanks for the tip :)

I have installed the main app now and logged in to the admin console. :)

However, I then logged out and came to run the beta patch for PHP5.3 and received similar error messages to before when running the command: php wrapquotes.php

PHP Warning:  fopen(emails_en.ini): failed to open stream: No such file or directory in /opt/kaltura/app/batch/batches/Mailer/wrapquotes.php on line 11
PHP Notice:  Undefined variable: iIniFile in /opt/kaltura/app/batch/batches/Mailer/wrapquotes.php on line 11
Please validate the script can access the  filenick@ubuntu:/opt/kaltura/app/batch/batches/Mailer$

Please note that I have only just set the server up for the first time and have not yet tested the email server other than through this installation.



@tunist This error doesn't have anything with an email server. The wrapquotes.php script only opens the emails_en.ini file and enclose all the values with double quotes.

The error say it can't access the emails_en.ini file. Did you ran the script with user that can access the emails_en.ini file?


Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.


The financial institutions will deliver the bailiffs contacting, and such learners will be more likely to reduce individual and family belongings to aggressive and badly controlled economical industry. centrebet free bet