Doc #79232 [NEW]: FFI+Preloading example does not work
From: ojrask at gmail dot com
Operating system:
PHP version: 7.4.2
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:FFI+Preloading example does not work
Description:
------------
---
From manual page: https://php.net/ffi.examples-complete
---
This example is broken.
1. When followed as is, the developer is greeted by an error that states
that opcache.preload_user has to be set in php.ini, as running
preloading as root is not allowed.
2. When opcache.preload_user is set, the example code fails with the
following error:
> NOTICE: PHP message: PHP Fatal error: Uncaught FFI\Exception:
FFI::load() doesn't work in conjunction with "opcache.preload_user". Use
"ffi.preload" instead. in .../preload.php:123
Or have I misunderstood something?
--
Edit bug report at https://bugs.php.net/bug.php?id=79232&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79232&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79232&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79232&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79232&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79232&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79232&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79232&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79232&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79232&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79232&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79232&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79232&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79232&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79232&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79232&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79232&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79232&r=mysqlcfg
Thread (2 messages)
- ojrask at gmail dot com