Hi I am a newcomer here
I have done an upgrade from PHP 5.1 to PHP 5.3 lately.
In general everythinks works well except CLI command.
Example:
I have wrote a code.
// adodb5 connection (version 5.0.9a),
// I've tried with older adodb libraries with the same results
require($ADODBPATH);
$conn = NewADOConnection('postgres');
$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
$conn->Connect($PGHOSTNAME, $PGUSER, $PGPASSWORD, $PGBASE);
echo "1. before StartTrans\n";
$conn->StartTrans();
echo "2. after StartTrans and before GetAll\n";
$table = $conn->GetAll("SELECT id_user, username, firstname, lastname FROM users;");
echo "3. after GetAll and before CompleteTrans\n";
$conn->CompleteTrans();
echo "4. The end\n";
The expecting command line output is:
1. before StartTrans
2. after StartTrans and before GetAll
3. after GetAll and before CompleteTrans
4. The end
The problem is... my output is:
1. before StartTrans
No message, no warnings, no exceptions... nothing is appears that can help me find the answer...
Script call the function StartTrans() and unexpectedly exits without any message.
What am I doing wrong?
I have downloaded adodb library from this link: adodb509a.tgz and of course I do no modifications.
Any help will be very welcome.
Regards
Cezar708
PS: I tried write this post without language mistakes