php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50313 traceroute example in socket create manual page
Submitted: 2009-11-27 13:50 UTC Modified: 2009-12-21 12:18 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ewout dot zigterman at dimat dot nl Assigned: kalle (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 - 39 = ?
Subscribe to this entry?

 
 [2009-11-27 13:50 UTC] ewout dot zigterman at dimat dot nl
Description:
------------
The parameter block in this article lists the different communication types of a socket.

the description for the SOCK_RAW list the following :

SOCK_RAW       Provides raw network protocol access ...... (like ping, traceroute, etc).

The traceroute example does not seem right because it is not possible to set a TTL value of an ip packet in PHP.

Yes it is true that a normal traceroute uses icmp packets however without the TTL value it is just a simple ping.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-21 12:18 UTC] svn@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=292411
Log: Fixed #50313 (traceroute example in socket create manual page)
 [2009-12-21 12:18 UTC] kalle@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=3428048b06933c8cbd185fb7328f75c78061c7cd
Log: Fixed #50313 (traceroute example in socket create manual page)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Aug 12 04:00:02 2025 UTC