• =?UTF-8?Q?Debian_11_PHP_7=2E4_=E2=80=93_Mysql_8_-_Can=E2=80=99t_get?= =

    From Bernard@21:1/5 to All on Sun Mar 24 20:00:01 2024
    This is a multi-part message in MIME format.
    Hi to Everyone !

    *PHP Warning: PHP Startup: Unable to load dynamic library '//usr/lib/php/20190902/mysqli.so' * *However, the file is there... not
    human readable as expected* *and mysqli_connect doesn't operate.*

    *Thanks in advance for your help*
    *Bernard*


    <!DOCTYPE html>
    <html>
    <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <style type="text/css">pre { font-family: "Liberation Mono", monospace; font-size: 10pt; background: transparent }p { margin-bottom: 0.25cm; line-height: 115%; background: transparent }strong { font-weight: bold }a:link { color: #000080; so-language:
    zxx; text-decoration: underline }</style>
    <p style="margin-bottom: 0.5cm">
    <font style="font-size: 14pt" size="4">Hi to Everyone !</font></p>
    <p><strong><span style="font-weight: normal">PHP Warning: PHP
    Startup: Unable to load dynamic library
    '//usr/lib/php/20190902/mysqli.so' </span></strong>
    <strong><span style="font-weight: normal">However, the file is
    there... not human readable as expected</span></strong>
    <strong><span style="font-weight: normal">and mysqli_connect
    doesn't operate.</span></strong></p>
    <p> </p>
    <pre style="margin-bottom: 0.5cm"><strong><span
    style="font-weight: normal">Thanks in advance for your help</span></strong> <strong><span style="font-weight: normal">Bernard</span></strong></pre>
    <br>
    <p></p>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Geert Stappers@21:1/5 to Bernard on Sun Mar 24 21:30:01 2024
    On Sun, Mar 24, 2024 at 07:51:05PM +0100, Bernard wrote:
    *PHP Warning: PHP Startup: Unable to load dynamic library '//usr/lib/php/20190902/mysqli.so'

    |$ apt-file search mysqli.so
    |php8.2-mysql: /usr/lib/php/20220829/mysqli.so
    |$


    So on my system, trixie, I would do `sudo apt install php8.2-mysql`
    and try again.


    Groeten
    Geert Stappers
    --
    Silence is hard to parse

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Cindy Sue Causey on Tue Mar 26 17:00:01 2024
    On Tue 26 Mar 2024 at 09:43:37 (-0400), Cindy Sue Causey wrote:
    On Tue, Mar 26, 2024 at 6:04 AM Bernard <bdebreil@free.fr> wrote:
    [ … ]
    $ php -m | grep mysqli

    "If the MySQLi extension is enabled, we’ll see mysqli in the output. Otherwise, the output will be empty."

    php -m grep mysqli

    PHP Warning: PHP Startup: Unable to load dynamic library '//usr/lib/php/20190902/mysqli.so' (tried: //usr/lib/php/20190902/mysqli.so (//usr/lib/php/20190902/mysqli.so: undefined symbol: mysqlnd_global_stats), /usr/lib/php/20190902///usr/lib/php/
    20190902/mysqli.so.so (/usr/lib/php/20190902///usr/lib/php/20190902/mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib/php/20190902/mysqli (/usr/lib/php/20190902/mysqli: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/mysqli.so (/usr/lib/php/20190902/
    mysqli.so: undefined symbol: mysqlnd_global_stats)) in Unknown on line 0
    mysqli

    Just observing out loud: What's generating that double slash, i.e. "//usr," in the start of the message? That seems like a possible show stopper.

    At a glance, the first warning looks like it might be the
    unsophisticated concatenation and substitution of paths,
    without regard for either leading and trailing delimiters
    or filename extensions:

    null plus /usr/lib/php/20190902/mysqli.so

    /usr/lib/php/20190902/ plus /usr/lib/php/20190902/mysqli.so plus .so
    -------------------------------
    substitution ↗

    The second warning looks more significant, but mysqli is outside my
    area of knowledge. Nonetheless, "mysqli" was seen in the last line,
    though without any context: grep might be helped along by -A and -B.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Bernard on Thu Mar 28 12:10:01 2024
    On Thu, Mar 28, 2024 at 10:36:01AM +0100, Bernard wrote:
    But I've found more problems, concerning $_REQUEST, $_GET...

    The old way that I used 11 yrs ago no longer works :

    $nom = S_GET [‘nom’] ;

    no longer operates with php 7.4. This code is simply ignored. S_REQUEST, $_POST do not work either.

    You mentioned $_GET and then you wrote S_GET.

    You also have Unicode curly quote marks there, not ASCII apostrophes.

    It's impossible for us to tell whether your PHP code is actually broken,
    or whether you *retyped* it with errors for your email.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Bernard on Fri Mar 29 12:10:01 2024
    On Fri, Mar 29, 2024 at 11:49:06AM +0100, Bernard wrote:
    Hi to Everyone,

    The text quoted below has already been sent to the list, 2-3 days ago, someone had replied to it (but the message has been lost, I no longer see it on the list. I had replied again, which reply disappeared too.)
    So, I want to say again that the errors shown in the text below (S instead
    of $, ` inst of ') are not errors that I made in the php script, which scripts I write using old vi (vim). This was due to the fact that some parts of my messages here were typed using LibreOffice and parts were copy/pasted here.

    That was something you wrote in a private reply to me, not to the list.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)