1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Without `embed` (docs.rs only) nothing can boot PHP, so the code only the engine reaches is unused there.
//!
//! ## In detail
//!
//! Embedded, statically linked PHP for speedyspec.
//!
//! [`Php::boot`] starts the interpreter once per process. PHP is
//! process-global and non-thread-safe, so a [`Php`] stays on the thread that
//! booted it. The hook registry passed in [`BootOptions`] is exposed to PHP as
//! `SpeedySpec\Hooks\Hook` and the WordPress-named functions.
pub use NativeArea;
pub use Callable;
/// ext-php-rs, for areas building their functions and classes.
pub use ext_php_rs;
pub use ;
pub use ;
pub use WebRequest;
/// The PHP version linked into this binary: the one pinned in this crate's
/// `php-version` file, which the build refuses to link anything else than.
pub const PHP_VERSION: &str = env!;
/// Identifies the execution context PHP is running in now: the main context or one fiber
/// (the address of its `zend_fiber_context`, `EG(current_fiber_context)`), 0 when PHP is not
/// running. Within one context calls nest strictly, also while other contexts are suspended
/// mid-call, so per-context bookkeeping that is saved and restored around a call stays correct
/// when a fiber suspends inside it. An address can be reused by a later fiber once its context
/// is destroyed.
/// How many times this process has entered the PHP engine. Every entry the
/// bridge makes (running code, calling a callable, firing a PHP callback,
/// releasing a PHP value) is counted; tests use it to show when PHP was not
/// entered at all.
/// How many saved per-context records the fiber bookkeeping holds (contexts
/// not running now, abandoned fibers included); tests use it to see records
/// created, freed and forgotten.