Jump to:
| Project: | API |
| Version: | master |
| Component: | Parser |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hallo,
I wanted to setup the API module on my own devel-site, but I ran into some issues: PHP core functions do not get linked to php.net, which is not that important, but would be very nice to have. After some debugging I found out that the default link to the PHP function summary document is broken.
http://cvs.php.net/viewcvs.cgi/phpdoc/funcsummary.txt?&view=markup
does not exist anymore. I think the replacement is
http://cvs.php.net/viewvc.cgi/phpdoc/funcsummary.txt?&view=markup
I changed this in the API reference admin settings, but it did not work yet. After some further investigation I found out that the regular expression used to parse the PHP summary document must be broken, too (the resulting array is always empty). At the moment the regex is
<?php
preg_match_all('!^[a-zA-Z0-9_]+ ([a-zA-Z0-9_]+)\(.*\n.*$!m', $response->data, $function_matches, PREG_SET_ORDER);
?>I'm not a regex expert and do not know what the regex should filter out exactly, so maybe someone could help out in resolving the problem.
Comments
#1
The correct URL is http://cvs.php.net/viewvc.cgi/phpdoc/funcsummary.txt?view=co.
Committing that to HEAD.
#2
Automatically closed -- issue fixed for two weeks with no activity.
#3
That URL no longer seems effective. Getting a 404 on it.
15 minutes of googling and I found *a* list that seemed to exist:
https://github.com/php/phpdoc-doc-base/blob/master/funcsummary.txt
Viewed in raw at: https://github.com/php/phpdoc-doc-base/raw/45917eec0f9bd3ff010b3c7501574...
Haven't tested whether this processes effectively.
#4
Now fixed again. PHP moved from CVS to SVN and the link broke. http://drupal.org/cvs?commit=448268 will fix this for new installs.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.