-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Call to undefined method lang_python_main::import()
File phpython/lang/python/python.main.php -> class lang_python_main haven't any method import.
This method call from phython/phpython.php -> class phpython -> method import.
Steps to reproduce:
- Clone this repository
- Create two files: test.py and index.php
- test.py:
print "hello, I'm python" - index.php:
<?php
require_once 'phpython/phpython.php';
phpython::import('test.py');
- Run
php index.phpin console
Output from console:
PHP Fatal error: Uncaught Error: Call to undefined method lang_python_main::import() in /Users/Mac/Documents/project/Snappages/phpython/phpython/phpython.php:23
Stack trace:
#0 /Users/Mac/Documents/project/Snappages/phpython/index.php(6): phpython::import('hello.py')
#1 {main}
thrown in /Users/Mac/Documents/project/Snappages/phpython/phpython/phpython.php on line 23
Fatal error: Uncaught Error: Call to undefined method lang_python_main::import() in /Users/Mac/Documents/project/Snappages/phpython/phpython/phpython.php:23
Stack trace:
#0 /Users/Mac/Documents/project/Snappages/phpython/index.php(6): phpython::import('hello.py')
#1 {main}
thrown in /Users/Mac/Documents/project/Snappages/phpython/phpython/phpython.php on line 23