Skip to content
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

Uncaught mysqli_sql_exception: Malformed packet in. v22.0.0 in php 8.2 only #313

Open
hcker2000 opened this issue May 8, 2023 · 0 comments

Comments

@hcker2000
Copy link

hcker2000 commented May 8, 2023

  1. What did you do? If possible, provide a simple script for reproducing the error.

Anyone know why I would be getting "Uncaught mysqli_sql_exception: Malformed packet in" after doing this:

               $processes[$index] = new \Swoole\Process(function($process) use ($chunk, $diffOnly){
                   foreach ($chunk as $agency) {
                       $results = $this->get($agency->AgencyID, null, null);
                       $this->saveResults($results, $diffOnly);
                   }
               });
   
               $processes[$index]->start();
           }
           
           \Swoole\Process::wait(true);

if I remove the ::wait(true) the error goes away. I also only get this error when running v22.0.0. on php 8.2
I have tried php 7.4 on 22.0.0 and the error does not happen.
Is this a bug or is there a better way to do this? It happens to any queries that get run after the above code block

  1. What did you expect to see?
No Error

  1. What did you see instead?
Uncaught mysqli_sql_exception: Malformed packet in

  1. What version of OpenSwoole are you using (show your php --ri openswoole)?
22.0.0

  1. What is your machine environment used (show your uname -a & php -v & gcc -v) ?
Linux e0b542edc926 6.3.0-060300-generic #202304232030 SMP PREEMPT_DYNAMIC Sun Apr 23 20:37:49 UTC 2023 x86_64 GNU/Linux


PHP 8.2.5 (cli) (built: May  3 2023 05:10:17) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.5, Copyright (c) Zend Technologies
    with Xdebug v3.2.1, Copyright (c) 2002-2023, by Derick Rethans
    with Zend OPcache v8.2.5, Copyright (c), by Zend Technologies


Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.1 20210110 (Debian 10.2.1-6) 

You can also try the following OpenSwoole support channels:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants