Forum Moderators: coopster
I am using a function addMember() that include several other functions and processes.
My problem is that after completion of whole process php automarically recall addMember function again.
I am not calling addMember() function recursively anywhere.
I am very much sure about that.
Is it a PHP bug?
please help me. How to fix this issue?
Note: Memory usage at the end of process: 1,803,334 bytes
I can describe it's struture.
-------------------------------------
filename: payment.php
-------------------------------------
include 'config.inc.php'; // connects to mysql
include 'include_files.php';// consists of all functions...
function add_member($post,$comingFrom)
{
... insert record to mysql table
... send sms to that user
... send email to that user
... charge money
... assignPosition($memberId);
}
-------------------------------------------------------
// About assignPosition() function
This function include several other functions to assign a position to that reg. member.
But I am not calling add_member() function anywhere in the code.
This recursive error is not occurring everytime! (70%-30%)