PHP functions do not get linked to php.net

klausi - December 3, 2008 - 11:30
Project:API
Version:HEAD
Component:Parser
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

drumm - December 27, 2008 - 00:11
Status:active» fixed

The correct URL is http://cvs.php.net/viewvc.cgi/phpdoc/funcsummary.txt?view=co.

Committing that to HEAD.

#2

System Message - January 10, 2009 - 00:20
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.