php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30035 php.net/instanceof leads nowhere
Submitted: 2004-09-09 07:38 UTC Modified: 2005-01-06 12:53 UTC
From: mfischer@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.1 OS:
Private report: No CVE-ID: None
 [2004-09-09 07:38 UTC] mfischer@php.net
Description:
------------
Trying to search for instanceof by using php.net/instanceof doesn't reveal a page for it; only with the next step, the google site-wide search, related pages can be found. However, even the page where it is documented ( http://php.net/manual/en/language.operators.type.php ) is not found.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-09 11:20 UTC] ante dot dfg at moj dot net
everything fine here....using Mozilla FireFox...
If you have applied SP2 to XP then there's your problem..

After I installed SP2 some pages were(and still are) not found by IE but found by Mozilla FireFox...
 [2004-12-29 18:32 UTC] mez@php.net
This seems to be working fine from here, if you can provide with more details, and give detailed instructions on how to reproduce this, then please feel free to re-open this bug
 [2004-12-29 22:35 UTC] mfischer@php.net
Go to http://php.net/instanceof , it should bring you to http://www.php.net/manual/en/language.operators.type.php or at least should show the page in the search result.
 [2004-12-29 22:46 UTC] mez@php.net
Ah, I understand what you mean now.

Not sure whether possible for me to fix this, so I'll flag it up as verified for now
 [2004-12-29 22:50 UTC] mez@php.net
actually doesn't the /whatever only reference functions? as instanceof isn't a function it wont be referenced by that. I'm not too sure why the google search isn't picking it up though
 [2004-12-29 23:30 UTC] mfischer@php.net
Not possible that it only relies on functions. I made a similiar request about http://php.net/php5 and at was promptly done by Derick.
 [2004-12-30 10:59 UTC] derick@php.net
But instanceof is a bitdifferent, as we don't have those hardcoded redirects for any of our control keywords AFAIK.
 [2004-12-30 13:14 UTC] goba@php.net
http://php.net/something is not only for function lookups, there are quite a few shortcuts, like http://php.net/getphp or http://php.net/whatisphp or http://php.net/install and even http://php.net/pear

Look into find_manual_page_slow() in http://php.net/source.php?url=/include/manual-lookup.inc to get an idea of how manual pages are looked up. Reference sections, control structures and other stuff are also matched. If the manual page has a proper ID, then it should end up being found by such a php.net lookup.
 [2004-12-30 16:43 UTC] betz@php.net
instanceof is found at http://www.php.net/manual/en/language.operators.type.php
This will never be catched by find_manual_page_slow().
A possible solution could be a shortcut in error.php like:
$ cvs diff error.php
Index: error.php
===================================================================
RCS file: /repository/phpweb/error.php,v
retrieving revision 1.29
diff -u -r1.29 error.php
--- error.php   27 Nov 2004 16:49:41 -0000      1.29
+++ error.php   30 Dec 2004 15:42:34 -0000
@@ -225,6 +225,7 @@
     "magicquotes"      => "security.magicquotes",
     "gd"               => "image",

+    "instanceof    => "language.operators.type",
     "htaccess"     => "configuration.changes",
     "php_value"    => "configuration.changes",



Regards
Friedhelm
 [2004-12-30 19:30 UTC] goba@php.net
What about other names operators? I know they have quite common names like 'and' and 'or' :)
 [2005-01-06 12:53 UTC] goba@php.net
Alias added.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 11:01:27 2024 UTC