FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17430&edit=1

ID: 17430
Updated by: daniel.oconnor@gmail.com
Reported By: tokul at users dot sourceforge dot net
Summary: Multiple Net_IDNA class declarations
Status: Open
Type: Bug
Package: Net_IDNA
Package Version: 0.7.3
PHP Version: 4.4.9
Roadmap Versions:
New Comment:

I've fixed this in SVN (There's now a Net_IDNA2); but releases appear
upset at the moment.


Previous Comments:
------------------------------------------------------------------------

[2010-05-25 04:51:28] tokul
Out of curiousity; what's keeping you on PHP4? (You are a rare one
these days!)

Bug report No. 14426 was about PHP4. So I've tested package on last
PHP4 version.

I use php5, but I have legacy systems that use older PHP versions and I
don't like unnecessarily dependencies that increase PHP version
requirements. I am planning to bundle net_idna with my package in order
to provide fallback idn decoding and encoding support and I think I'll
remove all PHP5 dependencies (exceptions and public/private
declarations, maybe others) from it.

------------------------------------------------------------------------

[2010-05-25 04:04:55] doconnor

How very annoying.

One needs to be Net_IDNA_Factory; which is a BC break.

For now, I'd suggest you make use of require_once 'Net/IDNA/php4.php';
and skip all of the getInstance() stuff.

Out of curiousity; what's keeping you on PHP4? (You are a rare one
these days!)

------------------------------------------------------------------------

[2010-05-24 09:31:40] tokul

Description:
------------
Package has one Net_IDNA class in IDNA.php and other Net_IDNA class in
Net/IDNA/php4.php and tries to load them both. fatal error is suppressed
in IDNA.php '@include_once $classfile;'

Cannot redeclare class net_idna in
/some-path/php/lib/php/Net/IDNA/php4.php on line 2973

Current SVN (rev. 292676) has same problem. Haven't tested it, but
looked at the source in svn web browser.

Test script:
---------------
include('Net/IDNA.php');
$idn_instance = Net_IDNA::getInstance();
echo 'done';


Expected result:
----------------
done

Actual result:
--------------
no output.

------------------------------------------------------------------------

Search Discussions

  • Daniel Oconnor at Jun 3, 2010 at 1:10 am
    Edit report at http://pear.php.net/bugs/bug.php?id=17430&edit=1

    ID: 17430
    Updated by: daniel.oconnor@gmail.com
    Reported By: tokul at users dot sourceforge dot net
    Summary: Multiple Net_IDNA class declarations
    -Status: Open
    +Status: Closed
    Type: Bug
    Package: Net_IDNA
    Package Version: 0.7.3
    PHP Version: 4.4.9
    -Assigned To:
    +Assigned To: doconnor
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Closed
    -Assigned To:
    +Assigned To: doconnor
    This bug has been fixed in SVN.

    If this was a documentation problem, the fix will appear on
    pear.php.net by the end of next Sunday (CET).

    If this was a problem with the pear.php.net website, the change should
    be live shortly.

    Otherwise, the fix will appear in the package's next release.

    Thank you for the report and for helping us make PEAR better.




    Previous Comments:
    ------------------------------------------------------------------------

    [2010-06-03 02:00:04] doconnor

    I've fixed this in SVN (There's now a Net_IDNA2); but releases appear
    upset at the moment.

    ------------------------------------------------------------------------

    [2010-05-25 04:51:28] tokul
    Out of curiousity; what's keeping you on PHP4? (You are a rare one
    these days!)

    Bug report No. 14426 was about PHP4. So I've tested package on last
    PHP4 version.

    I use php5, but I have legacy systems that use older PHP versions and I
    don't like unnecessarily dependencies that increase PHP version
    requirements. I am planning to bundle net_idna with my package in order
    to provide fallback idn decoding and encoding support and I think I'll
    remove all PHP5 dependencies (exceptions and public/private
    declarations, maybe others) from it.

    ------------------------------------------------------------------------

    [2010-05-25 04:04:55] doconnor

    How very annoying.

    One needs to be Net_IDNA_Factory; which is a BC break.

    For now, I'd suggest you make use of require_once 'Net/IDNA/php4.php';
    and skip all of the getInstance() stuff.

    Out of curiousity; what's keeping you on PHP4? (You are a rare one
    these days!)

    ------------------------------------------------------------------------

    [2010-05-24 09:31:40] tokul

    Description:
    ------------
    Package has one Net_IDNA class in IDNA.php and other Net_IDNA class in
    Net/IDNA/php4.php and tries to load them both. fatal error is suppressed
    in IDNA.php '@include_once $classfile;'

    Cannot redeclare class net_idna in
    /some-path/php/lib/php/Net/IDNA/php4.php on line 2973

    Current SVN (rev. 292676) has same problem. Haven't tested it, but
    looked at the source in svn web browser.

    Test script:
    ---------------
    include('Net/IDNA.php');
    $idn_instance = Net_IDNA::getInstance();
    echo 'done';


    Expected result:
    ----------------
    done

    Actual result:
    --------------
    no output.

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJun 3, '10 at 1:07a
activeJun 3, '10 at 1:10a
posts2
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 2 posts

People

Translate

site design / logo © 2022 Grokbase