php.net |  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: philip@php.net 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] philip@php.net
Description:
------------
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:

  print_r(array_unique(phpdotnet::$missingVersions));

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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-03 23:59 UTC] bjori@php.net
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 PHP.net itself.

Thank you for the report, and for helping us make PHP.net 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: Thu Nov 21 09:01:32 2024 UTC