You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by "Bruce Ingalls (Created) (JIRA)" <ji...@apache.org> on 2012/03/01 18:33:59 UTC

[jira] [Created] (LOG4PHP-173) Minimum PHP version requirement

Minimum PHP version requirement
-------------------------------

                 Key: LOG4PHP-173
                 URL: https://issues.apache.org/jira/browse/LOG4PHP-173
             Project: Log4php
          Issue Type: Dependency upgrade
          Components: Documentation
    Affects Versions: 2.2.1
         Environment: PHP v5.2.26
            Reporter: Bruce Ingalls
             Fix For: 2.2.1


Documentation claims that Log4php supports PHP v5.2. The simplest example in quickstart works for v5.3, but fails for v5.2.26:
Fatal error: Call to a member function close() on a non-object in ~PEAR/log4php/Logger.php on line 302

Further, your unit testing section at http://wiki.apache.org/logging-log4php/WritingTests uses phpunit, which requires PHP v5.2.27+
This implies that you are not testing older versions of PHP, unless you've built a legacy test harness.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (LOG4PHP-173) Minimum PHP version requirement

Posted by "Bruce Ingalls (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LOG4PHP-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221269#comment-13221269 ] 

Bruce Ingalls commented on LOG4PHP-173:
---------------------------------------

My mistake: my PHP version is 5.2.6
Running PHP_CompatInfo v2.2.5, claims that v5.2.0 is the minimum: http://pear.php.net/package/PHP_CompatInfo

Indeed, you are right. The pear install for my v5.2.6 system is corrupt, while the pear install for the same log4php version for v5.3.6 is working.
It sounds like you've seen this problem before, and that PEAR needs SHA hashes to reduce this problem.
You can close this issue.
Thanks, Bruce
                
> Minimum PHP version requirement
> -------------------------------
>
>                 Key: LOG4PHP-173
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-173
>             Project: Log4php
>          Issue Type: Dependency upgrade
>          Components: Documentation
>    Affects Versions: 2.2.1
>         Environment: PHP v5.2.26
>            Reporter: Bruce Ingalls
>              Labels: documentation
>             Fix For: 2.2.1
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Documentation claims that Log4php supports PHP v5.2. The simplest example in quickstart works for v5.3, but fails for v5.2.26:
> Fatal error: Call to a member function close() on a non-object in ~PEAR/log4php/Logger.php on line 302
> Further, your unit testing section at http://wiki.apache.org/logging-log4php/WritingTests uses phpunit, which requires PHP v5.2.27+
> This implies that you are not testing older versions of PHP, unless you've built a legacy test harness.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (LOG4PHP-173) Minimum PHP version requirement

Posted by "Bruce Ingalls (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4PHP-173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruce Ingalls updated LOG4PHP-173:
----------------------------------

       Priority: Minor  (was: Major)
    Environment: PHP v5.2.6  (was: PHP v5.2.26)
    
> Minimum PHP version requirement
> -------------------------------
>
>                 Key: LOG4PHP-173
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-173
>             Project: Log4php
>          Issue Type: Dependency upgrade
>          Components: Documentation
>    Affects Versions: 2.2.1
>         Environment: PHP v5.2.6
>            Reporter: Bruce Ingalls
>            Priority: Minor
>              Labels: documentation
>             Fix For: 2.2.1
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Documentation claims that Log4php supports PHP v5.2. The simplest example in quickstart works for v5.3, but fails for v5.2.26:
> Fatal error: Call to a member function close() on a non-object in ~PEAR/log4php/Logger.php on line 302
> Further, your unit testing section at http://wiki.apache.org/logging-log4php/WritingTests uses phpunit, which requires PHP v5.2.27+
> This implies that you are not testing older versions of PHP, unless you've built a legacy test harness.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (LOG4PHP-173) Minimum PHP version requirement

Posted by "Ivan Habunek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4PHP-173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Habunek closed LOG4PHP-173.
--------------------------------

       Resolution: Not A Problem
    Fix Version/s:     (was: 2.2.1)
    
> Minimum PHP version requirement
> -------------------------------
>
>                 Key: LOG4PHP-173
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-173
>             Project: Log4php
>          Issue Type: Dependency upgrade
>          Components: Documentation
>    Affects Versions: 2.2.1
>         Environment: PHP v5.2.6
>            Reporter: Bruce Ingalls
>            Priority: Minor
>              Labels: documentation
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Documentation claims that Log4php supports PHP v5.2. The simplest example in quickstart works for v5.3, but fails for v5.2.26:
> Fatal error: Call to a member function close() on a non-object in ~PEAR/log4php/Logger.php on line 302
> Further, your unit testing section at http://wiki.apache.org/logging-log4php/WritingTests uses phpunit, which requires PHP v5.2.27+
> This implies that you are not testing older versions of PHP, unless you've built a legacy test harness.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (LOG4PHP-173) Minimum PHP version requirement

Posted by "Bruce Ingalls (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LOG4PHP-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227653#comment-13227653 ] 

Bruce Ingalls commented on LOG4PHP-173:
---------------------------------------

I am not a PEAR expert, myself. I am likely ranting to the wrong people. Other packaging systems have hashes or signing, hopefully, php.net will catch up.
The best I know of for PEAR, is to break 5.2 compatibility, package as PHAR, which allows checking local file size against the server.
I am testing on an older 5.2.x, and the good news is that log4php does support it. PHP_CompatInfo is a CodeSniffer plugin, to test the minimum theoretical supported version (5.2.0). I will soon upgrade my requirements.
I've not the skills, nor communication with pear.php.net to fix that problem, but I am donating code that is every bit as interesting as the recent Apache Chainsaw (or LogFactor 5?) support.
                
> Minimum PHP version requirement
> -------------------------------
>
>                 Key: LOG4PHP-173
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-173
>             Project: Log4php
>          Issue Type: Dependency upgrade
>          Components: Documentation
>    Affects Versions: 2.2.1
>         Environment: PHP v5.2.26
>            Reporter: Bruce Ingalls
>              Labels: documentation
>             Fix For: 2.2.1
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Documentation claims that Log4php supports PHP v5.2. The simplest example in quickstart works for v5.3, but fails for v5.2.26:
> Fatal error: Call to a member function close() on a non-object in ~PEAR/log4php/Logger.php on line 302
> Further, your unit testing section at http://wiki.apache.org/logging-log4php/WritingTests uses phpunit, which requires PHP v5.2.27+
> This implies that you are not testing older versions of PHP, unless you've built a legacy test harness.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (LOG4PHP-173) Minimum PHP version requirement

Posted by "Ivan Habunek (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LOG4PHP-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220241#comment-13220241 ] 

Ivan Habunek commented on LOG4PHP-173:
--------------------------------------

Hi Bruce,

First of all, I'd like to point out that PHP 5.2.17 is the last release from the 5.2 branch. Can you please double-check which version you're using.
http://www.php.net/downloads.php

Second, PHPunit 3.6 which we use for testing is compatible with PHP 5.2.7+.
https://github.com/sebastianbergmann/phpunit

We test the releases on 5.2.17 and the latest from 5.3.x branch.

I have just now manually tried the first example from the quick start guide on log4php 2.2.1 with the following PHP versions: 5.2.7 (Windows), 5.2.17 (Linux) and 5.3.8 (Windows). It works the same on all three and I am unable to reproduce the error which you reported.

It is possible that it's an issue with PEAR. Can you try to download the source package from our web and try it on that? In case the pear package has somehow become corrupted.

Regards,
Ivan
                
> Minimum PHP version requirement
> -------------------------------
>
>                 Key: LOG4PHP-173
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-173
>             Project: Log4php
>          Issue Type: Dependency upgrade
>          Components: Documentation
>    Affects Versions: 2.2.1
>         Environment: PHP v5.2.26
>            Reporter: Bruce Ingalls
>              Labels: documentation
>             Fix For: 2.2.1
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Documentation claims that Log4php supports PHP v5.2. The simplest example in quickstart works for v5.3, but fails for v5.2.26:
> Fatal error: Call to a member function close() on a non-object in ~PEAR/log4php/Logger.php on line 302
> Further, your unit testing section at http://wiki.apache.org/logging-log4php/WritingTests uses phpunit, which requires PHP v5.2.27+
> This implies that you are not testing older versions of PHP, unless you've built a legacy test harness.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (LOG4PHP-173) Minimum PHP version requirement

Posted by "Ivan Habunek (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LOG4PHP-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221284#comment-13221284 ] 

Ivan Habunek commented on LOG4PHP-173:
--------------------------------------

Unfortunately, I'm not a PEAR person, and neither is any of the other devs on the project currently. It's my experience that PEAR repo can become corrupt sometimes when upgrading, it has happened to me with PHPUnit several times.

If you have the time and energy, you're very welcome to help us improve our PEAR build procedure. I can show you what's currently being done.

As far as this issue is concerned, I will leave it open since log4php is almost certainly not compatible with PHP 5.2.0. I will perform unit tests on 5.2.7 which is the lowest version compatible with PHPUnit. Then we can update minimum requirements accordingly.

Do you actually use 5.2.6 actively? It's pretty ancient. Frankly, I doubt we will be supporting versions below 5.2.7 because of PHPUnit incompatibility.
                
> Minimum PHP version requirement
> -------------------------------
>
>                 Key: LOG4PHP-173
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-173
>             Project: Log4php
>          Issue Type: Dependency upgrade
>          Components: Documentation
>    Affects Versions: 2.2.1
>         Environment: PHP v5.2.26
>            Reporter: Bruce Ingalls
>              Labels: documentation
>             Fix For: 2.2.1
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Documentation claims that Log4php supports PHP v5.2. The simplest example in quickstart works for v5.3, but fails for v5.2.26:
> Fatal error: Call to a member function close() on a non-object in ~PEAR/log4php/Logger.php on line 302
> Further, your unit testing section at http://wiki.apache.org/logging-log4php/WritingTests uses phpunit, which requires PHP v5.2.27+
> This implies that you are not testing older versions of PHP, unless you've built a legacy test harness.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira