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

ID: 17473
Updated by: hm2k@php.net
Reported By: hm2k at php dot net
Summary: undefined constant SOL_UDP
Status: Feedback
Type: Bug
Package: Net_DNS
Package Version: 1.0.1
PHP Version: 5.2.5
Roadmap Versions:
New Comment:
On UNIX systems php needs /etc/protocols for constants like SOL_UDP and SOL_TCP.
This file was missing on my embedded platform.
If this is the solution then surely the code would need to accommodate
this?


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

[2010-08-09 09:09:04] bate

http://www.php.net/manual/de/function.socket-create.php#81938
can you please verify this notice ?

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

[2010-08-09 08:59:49] hm2k

-PHP Version: 5.3.2
+PHP Version: 5.2.5
Actually, my dev server is PHP 5.2.13
My test production server is PHP 5.2.8

I am unable to reproduce on these systems.

However, I am able to reproduce on 5.2.5, which is what codepad uses:

http://codepad.org/FrMynhoJ

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

[2010-08-09 08:28:48] bate

If i run
var_dump(extension_loaded("sockets")); echo SOL_UDP;
i get bool(true) and 17 as result ... which php version does you run?


php -r "var_dump(extension_loaded("sockets")); echo SOL_UDP;"

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

[2010-08-09 08:27:37] bate

i try to reproduce this

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

[2010-08-09 08:26:36] bate

try to set error_reporting(E_ALL) and you will get a notice .. SOL_UDP
isnt defined ...

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=17473

Search Discussions

  • Hm2k at Sep 2, 2011 at 2:41 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=17473&edit=1

    ID: 17473
    Updated by: hm2k@php.net
    Reported By: hm2k at php dot net
    Summary: undefined constant SOL_UDP
    -Status: Feedback
    +Status: Open
    Type: Bug
    Package: Net_DNS
    Package Version: 1.0.1
    PHP Version: 5.2.5
    Roadmap Versions:
    New Comment:

    -Status: Feedback
    +Status: Open



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

    [2011-09-02 16:42:24] hm2k
    On UNIX systems php needs /etc/protocols for constants like SOL_UDP and SOL_TCP.
    This file was missing on my embedded platform.
    If this is the solution then surely the code would need to accommodate
    this?

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

    [2010-08-09 09:09:04] bate

    http://www.php.net/manual/de/function.socket-create.php#81938
    can you please verify this notice ?

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

    [2010-08-09 08:59:49] hm2k

    -PHP Version: 5.3.2
    +PHP Version: 5.2.5
    Actually, my dev server is PHP 5.2.13
    My test production server is PHP 5.2.8

    I am unable to reproduce on these systems.

    However, I am able to reproduce on 5.2.5, which is what codepad uses:

    http://codepad.org/FrMynhoJ

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

    [2010-08-09 08:28:48] bate

    If i run
    var_dump(extension_loaded("sockets")); echo SOL_UDP;
    i get bool(true) and 17 as result ... which php version does you run?


    php -r "var_dump(extension_loaded("sockets")); echo SOL_UDP;"

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

    [2010-08-09 08:27:37] bate

    i try to reproduce this

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://pear.php.net/bugs/bug.php?id=17473

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 2, '11 at 2:41p
activeSep 2, '11 at 2:41p
posts2
users1
websitepear.php.net

1 user in discussion

Hm2k: 2 posts

People

Translate

site design / logo © 2022 Grokbase