Closed (works as designed)
Project:
Link checker
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2009 at 11:57 UTC
Updated:
17 Dec 2012 at 23:23 UTC
For the reason of http://drupal.org/project/issues/search/linkchecker?issue_tags=PHP%20eva... it may be a good idea to catch this type of errors and skip them. I'm not the friend of catching exceptions, but it's better than having this issues in the queue again and again.
Comments
Comment #1
dalinJust saw this in passing so I'm not sure of how you're implementing this. But if you're using drupal_eval() to render PHP content
http://api.drupal.org/api/function/drupal_eval/6
Then any PHP errors should just be returned as an error string.
Comment #2
gpk commentedRelated:
#361171: How to debug cron stoppage problems with bad PHP content
#286263: Make search indexing smart to handle nodes wth php redirects
Comment #3
hass commentedWell, this is both related and shows that the problem can also be seen in other modules.
@dalin: I'm loading all page content with input filters. It's not me who is calling the drupal_eval(). This are the core input filters and they fail if they render two PHP nodes with a duplicate function name. I guess this can happen in node listings, too.
It became sooo quiet regarding this type of issues... has something changed in core I may missed? I have not tested for very long time. As D7 is based on PHP5, core may be able to use http://php.net/manual/en/language.exceptions.php logics to catch these type of issues.
Comment #4
hass commentedLooks not like a recoverable error. We cannot catch these errors. :-(