Implement PHP Runtime API #33

Closed
opened 2022-12-05 08:38:59 +00:00 by netkas · 9 comments
netkas commented 2022-12-05 08:38:59 +00:00 (Migrated from git-old.n64.cc)

NCC Itself is just a package manager/compiler program. A builtin Runtime API to interact with NCC should be implemented for PHP to allow PHP environments to import packages and invoke NCC methods

NCC Itself is just a package manager/compiler program. A builtin Runtime API to interact with NCC should be implemented for PHP to allow PHP environments to import packages and invoke NCC methods
netkas commented 2022-12-05 08:39:00 +00:00 (Migrated from git-old.n64.cc)

assigned to @netkas

assigned to @netkas
netkas commented 2022-12-15 06:07:57 +00:00 (Migrated from git-old.n64.cc)

mentioned in commit 0fbb374507

mentioned in commit 0fbb374507c12878ae05b70484e45a530c586792
netkas commented 2022-12-15 06:07:57 +00:00 (Migrated from git-old.n64.cc)

mentioned in commit 7a7ceb319b

mentioned in commit 7a7ceb319b567119c9ff166b96c361a51571a99c
netkas commented 2022-12-15 06:07:58 +00:00 (Migrated from git-old.n64.cc)

mentioned in commit 1f64a39f33

mentioned in commit 1f64a39f33921dc8812c559015cbc69db8f1d227
netkas commented 2022-12-15 06:07:58 +00:00 (Migrated from git-old.n64.cc)

mentioned in commit c77c7fcd55

mentioned in commit c77c7fcd553ed5cccd4d2cde9cd780a5eb1fbe1c
netkas commented 2022-12-15 06:07:59 +00:00 (Migrated from git-old.n64.cc)

mentioned in commit b9252a0fda

mentioned in commit b9252a0fda9a64d9fc957543d5f3165bb9fdb966
netkas commented 2022-12-15 06:07:59 +00:00 (Migrated from git-old.n64.cc)

mentioned in commit d237218562

mentioned in commit d2372185629a1c2722faf0f40e838ec05b656032
netkas commented 2022-12-17 06:00:31 +00:00 (Migrated from git-old.n64.cc)
Interactive shell

php > require 'ncc';
php > import('com.guzzlehttp.guzzle');
PHP Warning:  Undefined property: ncc\Objects\PackageLock\DependencyEntry::$Package in /etc/ncc/Runtime.php on line 114
PHP Warning:  Uncaught TypeError: ncc\Runtime::import(): Argument #1 ($package) must be of type string, null given, called in /etc/ncc/Runtime.php on line 114 and defined in /etc/ncc/Runtime.php:68
Stack trace:
#0 /etc/ncc/Runtime.php(114): ncc\Runtime::import()
#1 /usr/share/php/ncc(35): ncc\Runtime::import()
#2 php shell code(1): import()
#3 {main}
  thrown in /etc/ncc/Runtime.php on line 68
``` Interactive shell php > require 'ncc'; php > import('com.guzzlehttp.guzzle'); PHP Warning: Undefined property: ncc\Objects\PackageLock\DependencyEntry::$Package in /etc/ncc/Runtime.php on line 114 PHP Warning: Uncaught TypeError: ncc\Runtime::import(): Argument #1 ($package) must be of type string, null given, called in /etc/ncc/Runtime.php on line 114 and defined in /etc/ncc/Runtime.php:68 Stack trace: #0 /etc/ncc/Runtime.php(114): ncc\Runtime::import() #1 /usr/share/php/ncc(35): ncc\Runtime::import() #2 php shell code(1): import() #3 {main} thrown in /etc/ncc/Runtime.php on line 68 ```
netkas commented 2022-12-17 14:27:48 +00:00 (Migrated from git-old.n64.cc)

The runtime functions were implemented.

The runtime functions were implemented.
netkas (Migrated from git-old.n64.cc) closed this issue 2022-12-17 14:27:50 +00:00
Sign in to join this conversation.
No description provided.