gwynne Fri Jul 27 23:49:13 2007 UTC
Modified files: /phd/formats xhtml.php /phd/include PhDReader.class.php Log: I'm a very sad panda; I made a booboo in adding & to $this for callback arrays. Undoing it makes me a happy panda. http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.4&r2=1.5&diff_format=u Index: phd/formats/xhtml.php diff -u phd/formats/xhtml.php:1.4 phd/formats/xhtml.php:1.5 --- phd/formats/xhtml.php:1.4 Fri Jul 27 23:32:10 2007 +++ phd/formats/xhtml.php Fri Jul 27 23:49:12 2007 @@ -1,6 +1,6 @@ <?php -/* $Id: xhtml.php,v 1.4 2007/07/27 23:32:10 gwynne Exp $ +/* $Id: xhtml.php,v 1.5 2007/07/27 23:49:12 gwynne Exp $ +-------------------------------------------------------------------------+ | Copyright(c) 2007 | | Authors: | @@ -187,7 +187,7 @@ ); $tmp = preg_replace_callback( '{([\w_]+)\s*</span>(\s*<span\s+class="keyword">\s*\()}m', - array( &$this, 'format_listing_hyperlink_function' ), $tmp ); + array( $this, 'format_listing_hyperlink_function' ), $tmp ); return sprintf( '<div class="phpcode">%s</div>', $tmp ); } http://cvs.php.net/viewvc.cgi/phd/include/PhDReader.class.php?r1=1.3&r2=1.4&diff_format=u Index: phd/include/PhDReader.class.php diff -u phd/include/PhDReader.class.php:1.3 phd/include/PhDReader.class.php:1.4 --- phd/include/PhDReader.class.php:1.3 Fri Jul 27 23:32:11 2007 +++ phd/include/PhDReader.class.php Fri Jul 27 23:49:12 2007 @@ -1,6 +1,6 @@ <?php -/* $Id: PhDReader.class.php,v 1.3 2007/07/27 23:32:11 gwynne Exp $ +/* $Id: PhDReader.class.php,v 1.4 2007/07/27 23:49:12 gwynne Exp $ +-------------------------------------------------------------------------+ | Copyright(c) 2007 | | Authors: | @@ -130,7 +130,7 @@ if( isset( $this->map[ $name ] ) ) { return $this->transformFromMap( $type == XMLReader::ELEMENT, $name ); } - return call_user_func( array( &$this, "format_${name}" ), $type == XMLReader::ELEMENT ); + return call_user_func( array( $this, "format_${name}" ), $type == XMLReader::ELEMENT ); break; case XMLReader::TEXT: