-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is storing objects in cache supported? my script fails hard #980
Comments
In case I wasn't clear when run as part of a webpage it causes Chrome to say Error code: ERR_EMPTY_RESPONSE ... even if there is output earlier in the page |
Could you please try 1.2.2? I believe it is b04d46b |
Never mind, I can confirm the crash. |
Did it work for you? |
Sorry for the delay, different timezones I think, plus had the weekend off ;) Still have the same problem on master and 1.2.2, and have an extra issue with 1.3 which seems to stop it being installed altogether #1001 though based on your pull request title I have also tested with the simpler code as below and have the same issue - dies with no error during unserialize <?php
$config = new \Phalcon\Config(array(
'database' => array(
'adapter' => 'Mysql',
'host' => 'localhost',
'username' => 'test',
'password' => 'test',
'name' => 'test',
),
'application' => array(
'controllersDir' => __DIR__ . '/../../app/controllers/',
'modelsDir' => __DIR__ . '/../../app/models/',
'viewsDir' => __DIR__ . '/../../app/views/',
'pluginsDir' => __DIR__ . '/../../app/plugins/',
'libraryDir' => __DIR__ . '/../../app/library/',
'baseUri' => '/',
)
));
echo 'Phalcon version : ',\Phalcon\Version::get(),"\n\n";
echo 'Phalcon version id : ',\Phalcon\Version::getId(),"\n\n";
$s = serialize($config);
$config = unserialize($s);
print_r($config); Phalcon version : 1.2.2 |
|
I tried the script on a 64 bit system Phalcon version : 1.3.0 ALPHA 1 still same problem Also on the 32 bit system 1.3 seems to work on command line despite #1001 but it doesn't fix this issue |
I also run the script on 64-bit system… What git revision do you use? |
BTW, could you please build phalcon for ext/? build/ files are not regenerated often, ext/ is always fresh |
Just tested 1.2.2
1.2.2 is 7915b80 All built from ext/ |
"could you please build phalcon for ext/?" sorry not sure how? Also what is the best way to find the git revision? |
git clone https://github.com/phalcon/cphalcon.git
git checkout 1.3.0
cd ext
phpize
./configure
make
sudo make install for 1.2.2 — |
Cool, that's fixed now, thanks :) |
I am experimenting with caching config objects in memcache to see if it increases speed or not when I came across a bug.
The code below is standalone stripped out of my site to run on command line just to test. The actual config I want to store is much bigger but the bug shows here too.
When the code runs, the config file is saved to the cache fine, I can see it with telnet and when I run
it comes back just fine, but I can't retrieve the config file with phalcon. (if I set the key value to "hello world" it works fine)
But worse it fails with no error message. I have error logging to show everything end even log to file. I wrote a call to a function that doesn't exist and it does show on both the command line and the php error log so I know that is working.
I believe I have ruled everything, and it has to be a phalcon issue.
I am on fedora14 - 32 bit with the latest master. if I do a git pull I get told it is up to date and git show master says the last commit was : da5d779
The text was updated successfully, but these errors were encountered: