Closed JasonTame closed 1 week ago
Hi @peter279k
I have mbstring
enabled on PHP 8.3, here's the output of php -m
:
jaytame@jmtwinlaptop:~$ php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
random
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Even so, I get the undefined function error when running laravel new
. Also, I'm pretty sure the installer would immediately fail if I didn't have mbstring
as it is a required extension in the ensureExtensionsAreAvailable()
method.
Changing to PHP 8.4 resolves this issue and the installer works as normal.
Installer Version
5.11.1
Description
Attempting to run
laravel new
on WSL when using PHP 8.3 leads to the following error:I have tested on MacOS and it works fine on PHP 8.3 there, it seems like
mb_trim
gets polyfilled on Mac.Steps To Reproduce
laravel new