mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ext/opcache: C++ compatibility
Just in case somebody includes those headers from C++ code. The same already exists in other opcache headers.
This commit is contained in:
parent
45a128c9de
commit
b47bfd698d
2 changed files with 8 additions and 0 deletions
|
@ -28,7 +28,11 @@
|
||||||
#define ACCEL_LOG_INFO 3
|
#define ACCEL_LOG_INFO 3
|
||||||
#define ACCEL_LOG_DEBUG 4
|
#define ACCEL_LOG_DEBUG 4
|
||||||
|
|
||||||
|
BEGIN_EXTERN_C()
|
||||||
|
|
||||||
void zend_accel_error(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
|
void zend_accel_error(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
|
||||||
ZEND_NORETURN void zend_accel_error_noreturn(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
|
ZEND_NORETURN void zend_accel_error_noreturn(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
|
||||||
|
|
||||||
|
END_EXTERN_C()
|
||||||
|
|
||||||
#endif /* _ZEND_ACCELERATOR_DEBUG_H */
|
#endif /* _ZEND_ACCELERATOR_DEBUG_H */
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
#ifndef ZEND_PERSIST_H
|
#ifndef ZEND_PERSIST_H
|
||||||
#define ZEND_PERSIST_H
|
#define ZEND_PERSIST_H
|
||||||
|
|
||||||
|
BEGIN_EXTERN_C()
|
||||||
|
|
||||||
uint32_t zend_accel_script_persist_calc(zend_persistent_script *script, int for_shm);
|
uint32_t zend_accel_script_persist_calc(zend_persistent_script *script, int for_shm);
|
||||||
zend_persistent_script *zend_accel_script_persist(zend_persistent_script *script, int for_shm);
|
zend_persistent_script *zend_accel_script_persist(zend_persistent_script *script, int for_shm);
|
||||||
|
|
||||||
|
@ -31,4 +33,6 @@ void zend_update_parent_ce(zend_class_entry *ce);
|
||||||
void zend_persist_warnings_calc(uint32_t num_warnings, zend_error_info **warnings);
|
void zend_persist_warnings_calc(uint32_t num_warnings, zend_error_info **warnings);
|
||||||
zend_error_info **zend_persist_warnings(uint32_t num_warnings, zend_error_info **warnings);
|
zend_error_info **zend_persist_warnings(uint32_t num_warnings, zend_error_info **warnings);
|
||||||
|
|
||||||
|
END_EXTERN_C()
|
||||||
|
|
||||||
#endif /* ZEND_PERSIST_H */
|
#endif /* ZEND_PERSIST_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue