stackery / php-lambda-layer

PHP Runtime Layer for AWS Lambda
Other
320 stars 70 forks source link

error using simplexml_load_string #63

Closed warrence closed 4 years ago

warrence commented 4 years ago

Hi, im getting error Call to undefined function App\Http\Controllers\simplexml_load_string()

i have enable the below in php.ini

extension=simplexml.so
extension=xml.so
extension=xmlreader.so
extension=xmlwriter.so

But im still getting the error, any advise?

Thanks for this great layer!

theoziran commented 4 years ago

@warrence try to import the function use function simplexml_load_string; or call it as \simplexml_load_string.

I think it is not related to issues in the php.init.

warrence commented 4 years ago

It works when in my local machine using php -S localhost:8000 -t public

i tried \simplexml_load_string and use function simplexml_load_string; both are giving the same error.

warrence commented 4 years ago

Hi, it works now, i did not realize that im using a forked version, after i change to the parent version it works well. Thanks