Public bug reported:
If you put different number of parameters to extension or API function
you got this errors
Warning: Missing argument 2 for Test::foo() in
/usr/share/aiki/assets/extensions/Test.php on line 7
Notice: Undefined variable: b in /usr/share/aiki/assets/extensions/Test.php on
line 8
if you have extension Test with method foo and parameter $b.
and this warrnig if you try to execute extension $aiki->Test->bar with
don't exist
Warning: call_user_func_array() expects parameter 1 to be a valid
callback, class 'Test' does not have a method 'bar' in
/usr/share/aiki/libs/AikiScript.php on line 329
** Affects: aikiframework
Importance: Medium
Assignee: Jakub Jankiewicz (jcubic)
Status: Confirmed
** Changed in: aikiframework
Status: New => Confirmed
** Changed in: aikiframework
Importance: Undecided => Medium
** Changed in: aikiframework
Milestone: None => 0.9.1
** Changed in: aikiframework
Assignee: (unassigned) => Jakub Jankiewicz (jcubic)
--
You received this bug notification because you are a member of Aiki
Framework Admins, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/908598
Title:
Aiki don't check for number of parameters and if API or extension
exists
Status in Aiki Framework:
Confirmed
Bug description:
If you put different number of parameters to extension or API function
you got this errors
Warning: Missing argument 2 for Test::foo() in
/usr/share/aiki/assets/extensions/Test.php on line 7
Notice: Undefined variable: b in /usr/share/aiki/assets/extensions/Test.php
on line 8
if you have extension Test with method foo and parameter $b.
and this warrnig if you try to execute extension $aiki->Test->bar with
don't exist
Warning: call_user_func_array() expects parameter 1 to be a valid
callback, class 'Test' does not have a method 'bar' in
/usr/share/aiki/libs/AikiScript.php on line 329
To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/908598/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework.admins
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework.admins
More help : https://help.launchpad.net/ListHelp