I tried to run Sparse on an Apache 2.2.2, Tomcat 5, and PHP 5.2 configuration. However the sparse program encounters a number of warnings and will not generate the expected html. Here is what is contained in the error log:
******************************************
[21-Jul-2006 19:51:48] PHP Strict Standards: Declaration of FirstPassParser::do_tag() should be compatible with that of ParentParser::do_tag() in C:\WWW\WebRoot\myPhpTest\SparseUtils.php on line 860
[21-Jul-2006 19:51:48] PHP Strict Standards: Declaration of SecondPassParser::parseXML() should be compatible with that of FirstPassParser::parseXML() in C:\WWW\WebRoot\myPhpTest\SparseUtils.php on line 1257
[21-Jul-2006 19:51:48] PHP Strict Standards: Declaration of SecondPassParser::do_tag() should be compatible with that of FirstPassParser::do_tag() in C:\WWW\WebRoot\myPhpTest\SparseUtils.php on line 1257
[21-Jul-2006 19:51:48] PHP Strict Standards: Declaration of Sparser::parseXML() should be compatible with that of ParentParser::parseXML() in C:\WWW\WebRoot\myPhpTest\Sparse.php on line 29
[21-Jul-2006 19:51:48] PHP Strict Standards: Declaration of Sparser::do_tag() should be compatible with that of ParentParser::do_tag() in C:\WWW\WebRoot\myPhpTest\Sparse.php on line 29
[21-Jul-2006 19:54:48] PHP Strict Standards: Declaration of FirstPassParser::do_tag() should be compatible with that of ParentParser::do_tag() in C:\WWW\WebRoot\myPhpTest\SparseUtils.php on line 860
[21-Jul-2006 19:54:48] PHP Strict Standards: Declaration of SecondPassParser::parseXML() should be compatible with that of FirstPassParser::parseXML() in C:\WWW\WebRoot\myPhpTest\SparseUtils.php on line 1257
[21-Jul-2006 19:54:48] PHP Strict Standards: Declaration of SecondPassParser::do_tag() should be compatible with that of FirstPassParser::do_tag() in C:\WWW\WebRoot\myPhpTest\SparseUtils.php on line 1257
[21-Jul-2006 19:54:48] PHP Strict Standards: Declaration of Sparser::parseXML() should be compatible with that of ParentParser::parseXML() in C:\WWW\WebRoot\myPhpTest\Sparse.php on line 29
[21-Jul-2006 19:54:48] PHP Strict Standards: Declaration of Sparser::do_tag() should be compatible with that of ParentParser::do_tag() in C:\WWW\WebRoot\myPhpTest\Sparse.php on line 29
[21-Jul-2006 19:54:48] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name]().
If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer.
in C:\WWW\WebRoot\myPhpTest\Sparse.php(91) : eval()'d code on line 1
[21-Jul-2006 19:54:48] PHP Parse error: parse error, unexpected $end in C:\WWW\WebRoot\myPhpTest\Sparse.php(91) : eval()'d code on line 66
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Woo, a PHP 5 tester! 8-)
It looks like you can get rid of those "strict standards" error messages by first including this line before you call SparseThisPage:
error_reporting(error_reporting() & ~E_STRICT);
As for the last error, it's hard for me to figure it out without seeing what code is being executed. Please uncomment line 90 in Sparse.php:
// print $this->code;
and make sure that caching is off by also putting the following line before SparseThisPage (that's two lines total before SparseThisPage):
define('SPARSE_NOCACHE', 1);
Then send me the output, if you don't mind (you can post it here or e-mail it to cidolfas@rpgclassics.com). It'd also be helpful to get the full HTML file you're using.
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to run Sparse on an Apache 2.2.2, Tomcat 5, and PHP 5.2 configuration. However the sparse program encounters a number of warnings and will not generate the expected html. Here is what is contained in the error log:
******************************************
[21-Jul-2006 19:51:48] PHP Strict Standards: Declaration of FirstPassParser::do_tag() should be compatible with that of ParentParser::do_tag() in C:\WWW\WebRoot\myPhpTest\SparseUtils.php on line 860
[21-Jul-2006 19:51:48] PHP Strict Standards: Declaration of SecondPassParser::parseXML() should be compatible with that of FirstPassParser::parseXML() in C:\WWW\WebRoot\myPhpTest\SparseUtils.php on line 1257
[21-Jul-2006 19:51:48] PHP Strict Standards: Declaration of SecondPassParser::do_tag() should be compatible with that of FirstPassParser::do_tag() in C:\WWW\WebRoot\myPhpTest\SparseUtils.php on line 1257
[21-Jul-2006 19:51:48] PHP Strict Standards: Declaration of Sparser::parseXML() should be compatible with that of ParentParser::parseXML() in C:\WWW\WebRoot\myPhpTest\Sparse.php on line 29
[21-Jul-2006 19:51:48] PHP Strict Standards: Declaration of Sparser::do_tag() should be compatible with that of ParentParser::do_tag() in C:\WWW\WebRoot\myPhpTest\Sparse.php on line 29
[21-Jul-2006 19:54:48] PHP Strict Standards: Declaration of FirstPassParser::do_tag() should be compatible with that of ParentParser::do_tag() in C:\WWW\WebRoot\myPhpTest\SparseUtils.php on line 860
[21-Jul-2006 19:54:48] PHP Strict Standards: Declaration of SecondPassParser::parseXML() should be compatible with that of FirstPassParser::parseXML() in C:\WWW\WebRoot\myPhpTest\SparseUtils.php on line 1257
[21-Jul-2006 19:54:48] PHP Strict Standards: Declaration of SecondPassParser::do_tag() should be compatible with that of FirstPassParser::do_tag() in C:\WWW\WebRoot\myPhpTest\SparseUtils.php on line 1257
[21-Jul-2006 19:54:48] PHP Strict Standards: Declaration of Sparser::parseXML() should be compatible with that of ParentParser::parseXML() in C:\WWW\WebRoot\myPhpTest\Sparse.php on line 29
[21-Jul-2006 19:54:48] PHP Strict Standards: Declaration of Sparser::do_tag() should be compatible with that of ParentParser::do_tag() in C:\WWW\WebRoot\myPhpTest\Sparse.php on line 29
[21-Jul-2006 19:54:48] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name]().
If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer.
in C:\WWW\WebRoot\myPhpTest\Sparse.php(91) : eval()'d code on line 1
[21-Jul-2006 19:54:48] PHP Parse error: parse error, unexpected $end in C:\WWW\WebRoot\myPhpTest\Sparse.php(91) : eval()'d code on line 66
Woo, a PHP 5 tester! 8-)
It looks like you can get rid of those "strict standards" error messages by first including this line before you call SparseThisPage:
error_reporting(error_reporting() & ~E_STRICT);
As for the last error, it's hard for me to figure it out without seeing what code is being executed. Please uncomment line 90 in Sparse.php:
// print $this->code;
and make sure that caching is off by also putting the following line before SparseThisPage (that's two lines total before SparseThisPage):
define('SPARSE_NOCACHE', 1);
Then send me the output, if you don't mind (you can post it here or e-mail it to cidolfas@rpgclassics.com). It'd also be helpful to get the full HTML file you're using.
Thanks!
I have been tied up for the last few days and will probably not get back to this for another couple days. I will get the output to you then.
Sure.