<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br><div><br><blockquote type="cite"><div>On 29 Mar 2025, at 12:28, Ryan Carsten Schmidt <ryandesign@macports.org> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div dir="ltr"></div><div dir="ltr">On Mar 28, 2025, at 20:07, Horst B Simon wrote:</div><div dir="ltr"><blockquote type="cite"><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>I checked the MacPorts documentation, but did not understand on downgrading a port. </span><br><span>I am trying to install pear using the phar download, but my version of php is failing the install.</span><br><span>By searching on internet I found that it is a compatibility with libxml2, the current installed version</span><br><span>is 2.13.2 and the information is that libxml2 2.13 is not compatible and libxml2 2.12 should be working. </span><br><span>Is it possible that I can download and build libxml2 2.12 from MacPorts and if so how to do it. </span><br><span>The older version of php is needed for Horde Webmail 5.22, that’s why I cannot use php8.2 or higher.</span></div></blockquote><br><div>Older versions of php are available in MacPorts however they don't build on newer versions of macOS at present. There are tickets. I will work on them eventually. </div><div><br></div><div>I don't think I'm aware of an incompatibility between older php and newer libxml2 however it wouldn't surprise me.  I will presumably discover these problems when I work on the tickets and will resolve them then. </div><div><br></div><div>To downgrade libxml2, follow:</div><div><br></div><div><a href="https://trac.macports.org/wiki/howto/InstallingOlderPort">https://trac.macports.org/wiki/howto/InstallingOlderPort</a></div><div><br></div><div>Downgrading a central port like libxml2 will likely cause you all kinds of problems so I <span style="caret-color: rgb(0, 0, 0);">don't recommend it</span>. Maybe revupgrade will notice and rebuild the affected ports.</div></div></div></blockquote></div><br><div>The error I am getting when running: /opt/local/bin/php74 -d detect_unicode=0 go-pear.phar is:nstalling phar:///private/tmp/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.4.5.tar...</div><div><br></div><div>parsePackageName(): array $param must contain a valid package name in "phar:///private/tmp/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.10.16.tar"</div><div>Invalid tag order in <dependencies>, found <_content> expected one of "group"</div><div>Parsing of package.xml from file "/private/tmp/pear/install/pearXuHHr9/package.xml” failed</div><div><br></div><div>If I read correct is was fixed in PHP8.2 onwards in <span class="issue-keyword tooltipped tooltipped-se" aria-label="This commit closes issue #14834.">Fix</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2392508127" data-permission-text="Title is private" data-url="https://github.com/php/php-src/issues/14834" data-hovercard-type="issue" data-hovercard-url="/php/php-src/issues/14834/hovercard" href="https://github.com/php/php-src/issues/14834">GH-14834</a>: Error installing PHP when --with-pear is used.</div><div><br></div><div>Maybe if I patch php74 the same way it might work.</div><div><br></div><div>Regards,</div><div>Horst Simon</div><div><br></div></body></html>