Skip to content

Commit 8730aa4

Browse files
authored
Export zend_observer api in phper-sys. (#131)
1 parent 171e02b commit 8730aa4

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ version = "0.12.0"
2828
authors = ["PHPER Framework Team", "jmjoy <[email protected]>"]
2929
edition = "2021"
3030
license = "MulanPSL-2.0"
31-
repository = "https://github.com/jmjoy/phper.git"
31+
repository = "https://github.com/phper-framework/phper"
3232
rust-version = "1.65"
3333

3434
[workspace.dependencies]

phper-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
name = "phper-sys"
1313
description = "Low level PHP binding for Rust."
1414
keywords = ["php", "binding"]
15-
version = { workspace = true }
15+
version = "0.12.1"
1616
authors = { workspace = true }
1717
edition = { workspace = true }
1818
rust-version = { workspace = true }

phper-sys/php_wrapper.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
#include <zend_exceptions.h>
1919
#include <zend_interfaces.h>
2020

21+
#if PHP_MAJOR_VERSION >= 8
22+
#include <zend_observer.h>
23+
#endif
24+
2125
typedef ZEND_INI_MH(phper_zend_ini_mh);
2226

2327
typedef zend_class_entry *

0 commit comments

Comments
 (0)