|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44750 request for generic phd logger
Submitted: 2008-04-17 00:32 UTC Modified: 2008-05-03 23:59 UTC
From: Assigned: bjori (profile)
Status: Closed Package: Doc Build problem
PHP Version: Irrelevant OS: Mac
Private report: No CVE-ID: None
 [2008-04-17 00:32 UTC]
This request is for generic logging capabilities in PhD. For example, let's say we want to log every function that lacks version information (when a function is available in PHP/PECL, via versions.xml, via functable.php) then currently we might define $missingVersions and add this to phpdotnet.php:

  if (!isset($this->versions[$funcname])) {
    self::$missingVersions[] = $funcname;

And in build.php:


Rather, it would be nice to instead officially log such information in one place so instead of some variable, something like:

  if (!isset($this->versions[$funcname])) {
    log_errors('missing_versions', $funcname);

Then have a single place to categorically output all such logged errors. We'd also log missing mappers, missing translated text, etc.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-03 23:59 UTC]
This bug has been fixed in CVS. Since the websites are not directly
updated from the CVS server, the fix might need some time to spread
across the globe to all mirror sites, including itself.

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

- Added a "generic logging capabilities"
- Added VERBOSE_NOVERSION (disabled by default)
- Missing mappers already triggers E_USER_WARNING.

Missing translated text is however beyond the scope of the PhD-renderer...
It would be possible if we used xml:lang for all root elements though, which we however don't for whatever reason.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 03:01:28 2024 UTC