cannot use pecl because it uses php 7 syntax (xampp 8.2.0)

Problems with the Windows version of XAMPP, questions, comments, and anything related.

cannot use pecl because it uses php 7 syntax (xampp 8.2.0)

Postby Osama » 17. January 2023 13:10

I am trying to install mongodb using this comman 'pecl install mongodb' and it give me the following error
'Fatal error: Array and string offset access syntax with curly braces is no longer supported in D:\Programs\xampp\php\pear\PEAR\Config.php on line 2095'
when i go there and fix it, it shows another similar error in different files and it never ends, is there a way to update these files?
Osama
 
Posts: 1
Joined: 17. January 2023 13:05
XAMPP version: 8.2.0
Operating System: Windows 10

Re: cannot use pecl because it uses php 7 syntax (xampp 8.2.

Postby Nobbie » 17. January 2023 20:30

is there a way to update these files?


Yes, of course, simply edit the files and fix the problems. If you dont like to do it, ask the developer of the scripts to update to PHP 8.2. Xampp is not the developer.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: cannot use pecl because it uses php 7 syntax (xampp 8.2.

Postby hotnoob » 21. April 2023 21:41

just figured this out for myself. thought id share.

go to: https://pear.php.net/manual/en/installation.getting.php

save the file: https://pear.php.net/go-pear.phar as C:\xampp\php\go-pear.phar.php

cd C:\xampp\php
php go-pear.phar.php

follow installation process for local, and accept defaults.

enjoy!
hotnoob
 
Posts: 2
Joined: 05. September 2021 22:25
XAMPP version: 8.0.10
Operating System: win10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 201 guests