Commit 820fb4c8 authored by Chris's avatar Chris

ajout des includes et appels aux libs partagees MySQL necessaires a la...

ajout des includes et appels aux libs partagees MySQL necessaires a la compilation + correction verification parametres obligatoires/facultatits
parent cc73efb3
/*********************************************************************************************************************************************************/
/* mail_php Teria module */
/* */
/* Compilation instructions : */
/* cc -fpic -DCOMPILE_DL=1 -I/usr/include -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/php/main -I/usr/include/php -c -o smtp.o smtp.c */
/* cc -shared -L/usr/local/lib -rdynamic -o mail_php.so smtp.o */
/* Declaration dans php.ini : */
/* mail_php.enable_mysql=1 */
/* mail_php.enable_sasl=1 */
/* mail_php.enable_headers=0 */
/* mail_php.smtp_server="none" */
/* mail_php.smtp_port="587" */
/* mail_php.smtp_helo="EHLO mail_php.teria.org" */
/* mail_php.smtp_auth="AUTH LOGIN" */
/* mail_php.mysql_server="passerelle.paris.ld" */
/* mail_php.mysql_login="root" */
/* mail_php.mysql_password="" */
/* mail_php.mysql_base="mail_php" */
/* mail_php.footer=0 */
/* mail_php.footerContent="Demo footer" */
/* mail_php.enable_ssl="0" */
/* mail_php.enable_debug="1" */
/* mail_php.date="0" */
/* extension=mail_php.so */
/* mail_php Teria module */
/* */
/* Compilation instructions : */
/* cc -fpic -DCOMPILE_DL=1 -I/usr/include -I/usr/include/mysql -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/php/main -I/usr/include/php -c -o smtp.o smtp.c */
/* cc -shared -L/usr/local/lib -rdynamic -L/usr/lib64/mysql -lmysqlclient -o mail_php.so smtp.o */
/* Declaration dans php.ini : */
/* mail_php.enable_mysql=1 */
/* mail_php.enable_sasl=1 */
/* mail_php.enable_headers=0 */
/* mail_php.smtp_server="none" */
/* mail_php.smtp_port="587" */
/* mail_php.smtp_helo="EHLO mail_php.teria.org" */
/* mail_php.smtp_auth="AUTH LOGIN" */
/* mail_php.mysql_server="passerelle.paris.ld" */
/* mail_php.mysql_login="root" */
/* mail_php.mysql_password="" */
/* mail_php.mysql_base="mail_php" */
/* mail_php.footer=0 */
/* mail_php.footerContent="Demo footer" */
/* mail_php.enable_ssl="0" */
/* mail_php.enable_debug="1" */
/* mail_php.date="0" */
/* extension=mail_php.so */
/*********************************************************************************************************************************************************/
......@@ -181,7 +181,7 @@ ZEND_FUNCTION(mail_php)
int ssl_on_len=4;
/* Variables recovery */
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sssssss|s|s|s", &login, &login_len, &pass, &pass_len, &to, &to_len, &from, &from_len, &reply, &reply_len, &subject, &subject_len, &content, &content_len, &smtp_server, &smtp_server_len, &smtp_port, &smtp_port_len, &ssl_on, &ssl_on_len) == FAILURE) {
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sssssss|sss", &login, &login_len, &pass, &pass_len, &to, &to_len, &from, &from_len, &reply, &reply_len, &subject, &subject_len, &content, &content_len, &smtp_server, &smtp_server_len, &smtp_port, &smtp_port_len, &ssl_on, &ssl_on_len) == FAILURE) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment