Commit b457c69
Simplify console output helpers to macros over php_error_docref
Replace the APC_PRINT_FUNCTION macro that generated four exported
apc_error/apc_warning/apc_notice/apc_debug functions with thin variadic
macros in apc.h that forward directly to php_error_docref(), and drop the
generator block from apc.c entirely.
This also fixes the build against PHP 8.6-dev: php/php-src@0a12b3e8268
removed the params argument from php_verror(), which the old
APC_PRINT_FUNCTION body called. Forwarding to php_error_docref() instead
sidesteps php_verror() altogether and works on all supported versions.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent bc9e296 commit b457c69
2 files changed
Lines changed: 10 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 37 | | |
59 | 38 | | |
60 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| |||
0 commit comments