Operating system version
macOS Sonoma 14.0
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.3.1 (Build: 18)
PHP Version
PHP 8.2.11
Bug description
I apologise if this isn't quite Herd's bug, but I cannot seem to be able to get this one to work and couldn't think of any better place to post it.
According to Tidy installation instructions the extension is bundled with PHP when using --with-tidy configuration option.
When I run which tidy I get the path /usr/bin/tidy. I also get the manual with the version 5.8.0 calling man tidy.
I tried following Adding Extensions instructions, but pecl could not find valid package:
pear/tidy requires PHP (version >= 4.3.0, version <= 6.0.0), installed version is 8.2.12
Because I cannot get it to work I cannot install dependency for my project which makes use of ext-tidy. Even if I remove it from the require section, when I run the code such as:
use tidy;
(new tidy)->repairString("...")
I'm getting Error: Class "tidy" not found.
I've checked loaded extensions and it doesn't seem to list tidy:
[0] => Core
[1] => date
[2] => libxml
[3] => openssl
[4] => pcre
[5] => sqlite3
[6] => zlib
[7] => bcmath
[8] => bz2
[9] => calendar
[10] => ctype
[11] => curl
[12] => dba
[13] => dom
[14] => hash
[15] => FFI
[16] => fileinfo
[17] => filter
[18] => ftp
[19] => gd
[20] => gmp
[21] => json
[22] => iconv
[23] => SPL
[24] => intl
[25] => session
[26] => mbstring
[27] => standard
[28] => mysqlnd
[29] => pcntl
[30] => exif
[31] => mysqli
[32] => PDO
[33] => pdo_mysql
[34] => pdo_pgsql
[35] => pdo_sqlite
[36] => pgsql
[37] => Phar
[38] => posix
[39] => random
[40] => readline
[41] => redis
[42] => Reflection
[43] => imagick
[44] => shmop
[45] => SimpleXML
[46] => soap
[47] => sockets
[48] => sodium
[49] => sysvmsg
[50] => sysvsem
[51] => sysvshm
[52] => tokenizer
[53] => xml
[54] => xmlreader
[55] => xmlwriter
[56] => zip
[57] => xdebug
[58] => Zend OPcache
Now, it is likely that tidy I have access to via terminal comes from brew installation as it seem to be listed as tidy-html5 so perhaps it's just a simple way of pointing Herd's php to this extension, but I'm not entirely sure which file should I link it to from php.ini (if in fact that's what needs doing).
Any help would be much appreciated on this.
Steps to reproduce
Fresh installation of herd on macOS Sonoma 14.0 - try to install any composer package that makes use of ext-tidy.
Relevant log output
No response
Operating system version
macOS Sonoma 14.0
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.3.1 (Build: 18)
PHP Version
PHP 8.2.11
Bug description
I apologise if this isn't quite Herd's bug, but I cannot seem to be able to get this one to work and couldn't think of any better place to post it.
According to Tidy installation instructions the extension is bundled with PHP when using
--with-tidyconfiguration option.When I run
which tidyI get the path/usr/bin/tidy. I also get the manual with the version5.8.0callingman tidy.I tried following Adding Extensions instructions, but
peclcould not find valid package:Because I cannot get it to work I cannot install dependency for my project which makes use of
ext-tidy. Even if I remove it from therequiresection, when I run the code such as:I'm getting
Error: Class "tidy" not found.I've checked loaded extensions and it doesn't seem to list
tidy:Now, it is likely that
tidyI have access to via terminal comes frombrewinstallation as it seem to be listed astidy-html5so perhaps it's just a simple way of pointing Herd's php to this extension, but I'm not entirely sure which file should I link it to fromphp.ini(if in fact that's what needs doing).Any help would be much appreciated on this.
Steps to reproduce
Fresh installation of herd on macOS Sonoma 14.0 - try to install any composer package that makes use of
ext-tidy.Relevant log output
No response