php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58007 Undefined package constants
Submitted: 2008-01-13 10:41 UTC Modified: 2015-02-26 07:37 UTC
From: pecl+apd at pewasoft dot com Assigned:
Status: Suspended Package: apd (PECL)
PHP Version: Irrelevant OS: RHEL 4.3, WinXP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
18 - 5 = ?
Subscribe to this entry?

 
 [2008-01-13 10:41 UTC] pecl+apd at pewasoft dot com
Description:
------------
The documented APD constants are not defined anymore.

Reproduce code:
---------------
<?php
if (extension_loaded('APD')) {
   echo(FUNCTION_TRACE  );
   echo(ARGS_TRACE      );
   echo(ASSIGNMENT_TRACE);
   echo(STATEMENT_TRACE );
   echo(MEMORY_TRACE    );
   echo(TIMING_TRACE    );
   echo(SUMMARY_TRACE   );
   echo(ERROR_TRACE     );
   echo(PROF_TRACE      );
   echo(APD_VERSION     );
}
?>


Expected result:
----------------
1
2
4
8
16
32
64
128
256
1.0.2-dev


Actual result:
--------------
Notice: Use of undefined constant FUNCTION_TRACE - assumed 'FUNCTION_TRACE' in ../phpLib.php on line 12
FUNCTION_TRACE
Notice: Use of undefined constant ARGS_TRACE - assumed 'ARGS_TRACE' in in ../phpLib.php on line 13
ARGS_TRACE
...
...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-26 07:37 UTC] krakjoe@php.net
-Status: Open +Status: Suspended
 [2015-02-26 07:37 UTC] krakjoe@php.net
APD hasn't had a release in 10 years, this means it's source code is way out of sync with modern PHP.

I'm going to mark this bug as suspended, the report can still be found if a maintainer for APD comes forward.

Sorry about the wait.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 05:01:33 2024 UTC