INTERNAL LIBRARY with :-
- data_validations.php
- email_service.php (this calls PHPMailer v7 which is uploaded in External Libary)
- A few other libraries
APPLICATION: Form
onScriptInit:
If the include is as follows
sc_include(“email_service.php”, “prj”); // Email sending service
sc_include(“data_validations.php”, “prj”);
Generate Source fails with error as follows -
Undefined variable $nm_php_seg_func | Script: /Applications/Scriptcase/v9-php81/wwwroot/scriptcase/devel/class/generator/nmDados.class.php linha: 7706
If the include is as follows
sc_include("data_validations.php", "prj");
sc_include("email_service.php", "prj"); // Email sending service
Generate Source successful
Strange thing : This does not happen with blank application. I tried with multiple form applications to with same type of error
SCRIPTCASE Version 9.13 , postgres 18
ATTN TO SCRIPTCASE TECHNICAL TEAM: I am willing to share the libraries, the forms if they want to check this further