Open anton101101 opened 7 years ago
Let me guess... Ubuntu 16.04? That particular Ubuntu version keeps throwing stupid stuff like this... 16.10 and later are fine, just this one.
The problem is with the bundled PEAR2\Autoload
... A fix is already in its master branch, but not only is there not a release yet, that doesn't change the fact the bundled PEAR2\Autoload
has this issue.
You have two possible workarounds:
sudo do-release-upgrade
src/PEAR2/Autoload.php
.@boenrobot
Found your post in https://forum.mikrotik.com/viewtopic.php?t=101560 for the workaround.
So got around the problem by extracting the PHAR file using the command
phar extract -f PEAR2_Net_RouterOS-1.0.0b6.phar
Then using require_once 'PEAR2_Net_RouterOS-1.0.0b6/src/PEAR2/Autoload.php';
in the script instead.
Thanks
FYI for the above I created a brand new Virtual Machine for this which wasn't 16.04.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
PHP 5.6.31-4+ubuntu14.04.1+deb.sury.org+4 (cli) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
Hi,
Looking for some help please, when I run the test php script (below) from the CLI I get some errors (below) which I can't seem to find any reports of from a google search or on here and cant figure what's going wrong.
Any help is appreciated.
Thanks
PHP Script
Error