Coder Social home page Coder Social logo

Notice when decoding OK packets about mysql HOT 4 CLOSED

amphp avatar amphp commented on July 19, 2024
Notice when decoding OK packets

from mysql.

Comments (4)

marcioAlmada avatar marcioAlmada commented on July 19, 2024

A stack trace:

Exception: Uninitialized string offset: 9 in /amphp/mysql/lib/DataTypes.php:204
Stack trace:
#0 /amphp/mysql/lib/DataTypes.php(204): Aerys\Bootstrapper->{closure}(8, 'Uninitialized s...', '/.../...', 204, Array)
#1 /amphp/mysql/lib/DataTypes.php(196): Amp\Mysql\DataTypes::decodeIntOff('\x00\x01\xFC\xC7\x0E\x03\x00\x00\x00', 9)
#2 /amphp/mysql/lib/Processor.php(427): Amp\Mysql\DataTypes::decodeStringOff('\x00\x01\xFC\xC7\x0E\x03\x00\x00\x00', 9)
#3 /amphp/mysql/lib/Processor.php(462): Amp\Mysql\Processor->parseOk('\x00\x01\xFC\xC7\x0E\x03\x00\x00\x00')
#4 /amphp/mysql/lib/Processor.php(1091): Amp\Mysql\Processor->handleOk('\x00\x01\xFC\xC7\x0E\x03\x00\x00\x00')
#5 /amphp/mysql/lib/Processor.php(931): Amp\Mysql\Processor->parsePayload('\x00\x01\xFC\xC7\x0E\x03\x00\x00\x00')
#6 /amphp/amp/lib/UvReactor.php(424): Amp\Mysql\Processor->onRead('000000005a1097e...', Resource id #250, NULL)
#7 /amphp/amp/lib/UvReactor.php(401): Amp\UvReactor->invokePollWatcher(Object(stdClass))

from mysql.

marcioAlmada avatar marcioAlmada commented on July 19, 2024

It seems $off should not be 9 in this case https://dev.mysql.com/doc/internals/en/packet-OK_Packet.html

from mysql.

marcioAlmada avatar marcioAlmada commented on July 19, 2024

I can no longer reproduce the issue after 21801b0#diff-b7c6c28a97dddfea08068fa97b76dafdR426 :D

Can we close this one?

from mysql.

bwoebi avatar bwoebi commented on July 19, 2024

Oh, I thought I already committed that beforehand. Looks like I missed to commit something in between.

Well, if that fixes it, then let's close this issue :-)

from mysql.

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.