http_get works in PHP but undefined" in PHP AGI

Hi there

I have the http_get function working in PHP 5( with PECL installed etc), but this function becomes “undefined” as shown on the Asterisk Console in the PHP AGI script on the same machine.

Is PHP AGI a different PHP from the native PHP?