Giter Site home page Giter Site logo

Comments (10)

Sean-Der avatar Sean-Der commented on July 19, 2024

Hey @ryukoui

I am rebuilding PHP master right now, had an older build for extension development. Unfortunately I was not able to hit this issue.

But lets try to debug a couple other things! Are you able to reproduce this with the CLI SAPI? php your-script.php , or is this an issue that only shows up with apache2handler (don't currently have a setup using that)

thanks!

from msgpack-php.

ryukoui avatar ryukoui commented on July 19, 2024

Thanks for your reply, @Sean-Der

I did some test. Just as you said looks like this issue is only shows up with apache2handler.

I ran the code below with CLI, and apache2.4

ini_set('session.serialize_handler', 'msgpack');
session_start();

echo php_sapi_name();

$_SESSION['cnt'] = isset($_SESSION['cnt']) ? $_SESSION['cnt'] + 1 : 0;
echo $_SESSION['cnt'];

CLI finished with no error.
apache2.4 still give me segfault.

Sorry for my bad english by the way.
Hope this help.

from msgpack-php.

Sean-Der avatar Sean-Der commented on July 19, 2024

Your english is as good as people who ONLY speak it, so no worries :)

Does session related stuff work at all in apache2handler? It looked like Nginx + php-fpm was just a permissions error (looks like you removed it from your comment so you fixed it?)

There is a bug here, but I don't think it is with msgpack-php. Maybe the session API has changed, but this might not to be triaged/elevated to php-src.

from msgpack-php.

laruence avatar laruence commented on July 19, 2024

what is the problem here?

from msgpack-php.

laruence avatar laruence commented on July 19, 2024

nevermind, @Sean-Der, maybe you could make a PR against PHP to fix that

from msgpack-php.

Sean-Der avatar Sean-Der commented on July 19, 2024

@laruence that sounds be fun! Will reproduce it tonight, and hopefully submit a useful PR

from msgpack-php.

laruence avatar laruence commented on July 19, 2024

@Sean-Der, cool, thanks :)

from msgpack-php.

Sean-Der avatar Sean-Der commented on July 19, 2024

Hey @ryukoui

Would you mind trying the php7 branch again, 7a5bdb1 is the fix I pushed

@laruence totally false alarm on my end :/ just a case of the tests not hitting the case where sessions are decoded after an initialize pulls a saved session. I will see what I can do about getting a test around this!

thanks

from msgpack-php.

ryukoui avatar ryukoui commented on July 19, 2024

Hey @Sean-Der

7a5bdb1 fixed the problem perfectly!
For real you saved my weekend :)

I really appraciate you guys helping.

from msgpack-php.

Sean-Der avatar Sean-Der commented on July 19, 2024

That is great to hear :)

Thanks for using msgpack-php, and catching bugs before for other people!

from msgpack-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.