-
Notifications
You must be signed in to change notification settings - Fork 162
Fatal error: Class 'xhp_a' not found #2
Comments
I had the same issue, you need to include init.php from the 'php_lib' folder into your scripts. |
that seems to fix it, thanks. i guess this is supposed to be included automatically? |
For what it's worth, I'm having the same issue and including init.php fixed it. Are these files supposed to be copied somewhere specific on the system and linked automatically? |
I don't know whats supposed to happen, my guess is they forgot to put it in the documentation. I simply copied them to the root of my project, you can probably put them in one of the include dirs so you can use them from any project. |
Correct, you must include the XHP run-time code before using XHP. I updated the introduction to point out this fact. |
This information should also be included in the INSTALL file after including extension=xhp.so in your php.ini |
I just installed this on a fresh Linode with a basic Ubuntu 9.10 LAMP stack with all the latest dependencies. It built ok, and the module shows up in phpinfo(), but when I try to run any of the example code, I get an error:
Here's the code I tested with:
I tried running the code through the xhpize tool, and got the following output:
Which produces the same "class not found" error.
The text was updated successfully, but these errors were encountered: