Hi, I've coded a function that returns 1, 2, 3 or -1. It does it correctly, however when evaluating the result of such function in a switch() it fails:
switch(my_function("lalala")) {
case 1:
[...]
The way it works is:
my_function("lalala");
switch(my_function($rc)) {
case 1:
[...]
Is it the expected behavior?
--
Iñaki Baz Castillo
<[email protected]>
_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
