PHP Classes

Small bug

Recommend this page to a friend!

      PHP Video Toolkit  >  All threads  >  Small bug  >  (Un) Subscribe thread alerts  
Subject:Small bug
Summary:A few lines of code throw errors in phpvideotoolkit.php5.php
Messages:2
Author:Jaclyn Beck
Date:2009-06-11 14:17:08
Update:2009-06-11 14:22:48
 

  1. Small bug   Reply   Report abuse  
Picture of Jaclyn Beck Jaclyn Beck - 2009-06-11 14:17:08
I've been using phpvideotoolkit.php5.php on my Mac (OS X) and there are a few lines of code that cause errors in it.

Apparently, in the switch from php4 to php5, it is no longer legal to use code like this:
$array = array_pop(explode(...));

This will throw a "Strict Standards" error, saying that only variables can be passed by reference.
It's an easy fix:

$tmp_array = explode(...);
$array = array_pop($tmp_array);

But I thought I should make you aware of it. I had to fix lines 1288 and 2593 specifically.

  2. Re: Small bug   Reply   Report abuse  
Picture of Oliver Lillie Oliver Lillie - 2009-06-11 14:22:48 - In reply to message 1 from Jaclyn Beck
Thanks for letting me. When I get around to updating it I will make sure it is changed.