-
Notifications
You must be signed in to change notification settings - Fork 101
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
Parse error: syntax error, unexpected '.', expecting '&' or variable #112
Comments
Have you updated to the latest version? Can you paste line 551 from your file here? It doesn't look incorrect to me. |
We just installed a few days ago and can't seem to get rid of this error. Here is line 551. function mysql_fieldname(... $args) |
So the issue is here is that you've installed what looks to be v0.2.0, when the latest is 1.0.0beta4. I suspect you either manually chose to not install a beta, assuming 0.2.0 was more stable, or composer did. This is incorrect, in semantic versioning, all < 1.0 are unstable. Install 1.0.0beta4 and try again. Also it's worth noting that you're using PHP 7.3, which has been unsupported and EOL for over two and a half years. And trying to use a library that is no longer actively maintained, that was always meant to be a temporary solution in the first place. |
You are correct. Composer defaulted to 0.2.0. When I specified the version, the issue was resolved.
Running php5.4 in this environment and have thousands of scripts. Rector doesn’t seem to cover MySQL any longer so we have some work to do…. Any suggestions?
Thanks for your help!
Andrew Harrod -
K6ARH
RFinder LLC
e: ***@***.*** | w: www.rfinder.com
…________________________________
From: Davey Shafik ***@***.***>
Sent: Wednesday, July 3, 2024 4:23:05 PM
To: dshafik/php7-mysql-shim ***@***.***>
Cc: Andrew Harrod ***@***.***>; Author ***@***.***>
Subject: Re: [dshafik/php7-mysql-shim] Parse error: syntax error, unexpected '.', expecting '&' or variable (Issue #112)
So the issue is here is that you've installed what looks to be v0.2.0, when the latest is 1.0.0beta4. I suspect you either manually chose to not install a beta, assuming 0.2.0 was more stable, or comp
External ***@***.******@***.***>)
Report This Email<https://protection.inkyphishfence.com/report?id=cmZpbmRlci9hbmRyZXdAcmZpbmRlci5jb20vYWI3MmQ3YmQ1ZmE3YTE5MmQ2ZDkxYTdhZGUyNzEyZmIvMTcyMDA0ODk5MC40OQ==#key=0b6f7a10439df33443c364727144bce4>
So the issue is here is that you've installed what looks to be v0.2.0, when the latest is 1.0.0beta4.
I suspect you either manually chose to not install a beta, assuming 0.2.0 was more stable, or composer did. This is incorrect, in semantic versioning, all < 1.0 are unstable. Install 1.0.0beta4 and try again.
Also it's worth noting that you're using PHP 7.3, which has been unsupported and EOL for over two and a half years. And trying to use a library that is no longer actively maintained, that was always meant to be a temporary solution in the first place.
—
Reply to this email directly, view it on GitHub<https://shared.outlook.inky.com/link?domain=github.com&t=h.eJxNjk0OwiAYRK9icGvLj1VKV70K9AMhLbQCjTHGu1saE93NTF5e5oXWOKHugGzOS-owvrlsV1UPs8eQrDRuxItdeOWf6T5VyTqPXUqrTphSdtzjxnodcsUY4U175oSi0wGNxRqNC6AjlgGifvTfutul4gy4gouRXFLB4AqCbhE045QZhSlnhDStEKRuRDHqYgxzdsYNMrs5pP73tgBQgL_p_QG-HUbi.MEUCIAxP6PfjE9JCfYyUICYsZM8M26eSWzNSad3uWMo6SLozAiEAwa77f3XD5CmAotb7BzDO_zBisqLMebJNLgmWzQ_m3UY>, or unsubscribe<https://shared.outlook.inky.com/link?domain=github.com&t=h.eJxVT9FOgzAA_JWFZ12h4JA9jY6NbQU2UiiEt5aCNCoYKPHB7N-1xsTtnu4ul8vdlzGPb8Z6YXRKfUxrAF6k6ma-rId30A9KtrJmSg79BOZ-mvlUj5I3j2xWHUCn0yUPtgnKoz32IUojUsI8qzBBNPPpNtmTeOVrIIzDIrcJPRxhQGKaFsfSjmLq2GcSZecEFji1LwktCmxn-SGugl2MyjB1gjCp0nBnPCyMVz1ybGUvmhGwXozN5-ZP_o5l3IXC5eKpZS6zPChWwrN-qGiga8GWA8uFpuk8e565dDzd2OjGu4-b__M6IHTgxrp-A-seXjM.MEUCIHFiBKCOtuUAdRaXLK_K3g-os0EnzHjBpXwbR_y0TG9EAiEArlzJU4AxmBLYDKECaKsdTJc6NVVjBFSdcop-8lu4PQk>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /opt/cpanel/ea-php73/vendor/dshafik/php7-mysql-shim/lib/mysql.php on line 551
The text was updated successfully, but these errors were encountered: