Closed nitz closed 2 years ago
Hello curious contributor ! Since it seems to be your first contribution, make sure that you've been:
Hello,
Example directory is not really reliable but I'll push a fix soon.
Be aware that this directory has been removed in V9.
Instead look at the tests
directory which contain much more reliable examples.
Sure that makes sense! :)
I don't see any test that uses the leveldb
driver specifically. But I am still confused as to where the htaccess
issue is coming from, too. I don't see that property in the config structure for it to get upset about. The same code seems to work fine if I swap the leveldb
driver for files
for example.
This issue has been fixed, however I'm not going to make a new version immediately, meanwhile use dev-v8
.
Awesome, thank you! I'm blown away with how quickly you responded and got this figured out. Make sure to relax some this weekend! :)
Sure that makes sense! :)
I don't see any test that uses the
leveldb
driver specifically. But I am still confused as to where thehtaccess
issue is coming from, too. I don't see that property in the config structure for it to get upset about. The same code seems to work fine if I swap theleveldb
driver forfiles
for example.
It's because Phpfastcache "auto-validate" the Configuration object passed to the driver pool instance, if something is wrong it throws an error.
I think this driver is not tested actually (the last one not to be) because I can't build a stable Leveldb extension for current php7 version. It looks abandoned or poorly maintained atm.
Configuration
composer require
)Describe the bug
Freshly installed phpfastcache via composer, attempting to use an unmodified (sans require path)
leveldb
example produces the error:To Reproduce Steps to reproduce the behavior:
composer require phpfastcache/phpfastcache
(respond 'n' if asked to use a parent directorycomposer.json
)index.php
with the contents ofdocs/examples/leveldb.php
. 3.a. Modifyindex.php
to adjust the include path to point to thevendor
folder composer created.Expected behavior The
leveldb
example to run.Screenshots N/A
Additional context I'm not sure if this is something fixed in v9. I'm not on PHP 8 yet, so I can't try the newer version.