wiztrust / php-reader

Automatically exported from code.google.com/p/php-reader
0 stars 0 forks source link

__toString fatal error #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When trying to use this example code:

<?php
require_once("ISO14496.php");

$isom = new ISO14496("file.(m4a|mp4|..)");

foreach ($isom->getBoxes() as $name => $boxes)
  foreach ($boxes as $box)
    echo "Box $name\n";

from this page: http://code.google.com/p/php-reader/wiki/ISO14496

I get this error:

Fatal error: Method ISO14496_Box::__tostring() cannot take arguments in 
/Users/rick/Sites/test/mp3/php-reader-1.7/lib/ISO14496/Box.php on line 496

Original issue reported on code.google.com by rgig...@gmail.com on 31 Jan 2010 at 9:34

GoogleCodeExporter commented 9 years ago
Oh yeah, I got the error using PHP 5.3.

Original comment by rgig...@gmail.com on 31 Jan 2010 at 9:35

GoogleCodeExporter commented 9 years ago
So I simplified it to just this:

<?php
ini_set('include_path', ini_get('include_path') . ':php-reader-1.7/lib');

require_once("ISO14496.php");

and I get the same error.  Is this something they just started enforcing in PHP 
5.3?  

Also this is the info from ISO14496.php:

 * @package    php-reader
 * @subpackage ISO 14496
 * @copyright  Copyright (c) 2008 PHP Reader Project Workgroup
 * @license    http://code.google.com/p/php-reader/wiki/License New BSD License
 * @version    $Id: ISO14496.php 92 2008-05-10 13:43:14Z svollbehr $

Am I using the right/current version of the code?

Original comment by rgig...@gmail.com on 31 Jan 2010 at 9:39

GoogleCodeExporter commented 9 years ago
I am working on this issue for the new Zend classes. It is due to design error 
in the
previous release.

Original comment by svollbehr on 14 Feb 2010 at 7:52

GoogleCodeExporter commented 9 years ago
Fixed to classes in zend branch

Original comment by svollbehr on 1 Mar 2010 at 7:03

GoogleCodeExporter commented 9 years ago
Released package php-reader-1.8-zf contains the fix.

Original comment by svollbehr on 7 Mar 2010 at 9:03