marcelog / PAMI

PHP Asterisk Manager Interface ( AMI ) supports synchronous command ( action )/ responses and asynchronous events using the pattern observer-listener. Supports commands with responses with multiple events. Very suitable for development of operator consoles and / or asterisk / channels / peers monitoring through SOA, etc
http://marcelog.github.com/PAMI
Apache License 2.0
397 stars 278 forks source link

Error when trying to exectute autoloader function #24

Closed KazW closed 13 years ago

KazW commented 13 years ago

It seems like the latest update has broken the library, I've posted additional info below.

PHP version: PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:37) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Error: PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /var/www/html/PAMI/docs/examples/quickstart/example.php on line 50 PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /var/www/html/PAMI/docs/examples/quickstart/example.php on line 50 PHP Parse error: syntax error, unexpected T_STRING in /var/www/html/PAMI/docs/examples/quickstart/example.php on line 50

marcelog commented 13 years ago

PAMI requires PHP 5.3 because it uses namespaces

KazW commented 13 years ago

Thanks for the quick response, I think you should add that somewhere in the README.

marcelog commented 13 years ago

Done ;)