Skip to content

Commit a9fa71c

Browse files
committed
Keep GH-24492 Base64 allocation flag private to implementation
1 parent 050a624 commit a9fa71c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎ext/standard/base64.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#include "php.h"
2121
#include "base64.h"
2222

23+
/* Private to this translation unit; C API callers retain existing flags. */
24+
#define PHP_BASE64_FALLIBLE 2
25+
2326
/* {{{ base64 tables */
2427
static const char base64_table[] = {
2528
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',

‎ext/standard/base64.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ PHP_MINIT_FUNCTION(base64_intrin);
6363

6464
/* php_base64_encode_ex flags */
6565
#define PHP_BASE64_NO_PADDING 1
66-
#define PHP_BASE64_FALLIBLE 2 /* Only PHP userland uses this fallible result contract */
6766

6867
PHPAPI extern zend_string *php_base64_encode_ex(const unsigned char *, size_t, zend_long flags);
6968
PHPAPI extern zend_string *php_base64_decode_ex(const unsigned char *, size_t, bool);

0 commit comments

Comments
 (0)