English 中文(简体)
变换的php-内基违约交易行为
原标题:Changed php-interbase default transaction behaviour

我有几本PHP CLI的手稿,花了很长的时间(24小时加),尽管他们经常做一些与孤儿交易有关的问题——可能是由脱机造成的。

我的解决办法是按以下方式创建交易——一年前,我研究这一问题,并能够清楚地记住这些环境的确切原因,但似乎解决了数据库中的一些问题。

$dbh = ibase_connect($dbhost, $dbuser, $dbpass); $trans = ibase_trans(IBASE_WRITE+IBASE_COMMITTED+IBASE_REC_VERSION+IBASE_WAIT,$dbh);

目前已升级为5.3.5,发现ibase_trans Line造成分裂错误。 The php ibase_trans page there is a note:

“PHP 50.0中改变了这一功能的行为。 第1次要求“ibase_trans()”不会退回“连接”的未清交易。

因此,我的问题是,我是否能够为违约交易提出交易论点。 次要问题,我是否在试图这样做的时候完全没有问题!

增 编

最佳回答

您不应处理违约交易。

• 将交易定义为:

$T = ibase_trans($params, $database);

回答:

 ibase_query($T, $SQL, $Params)

或您可使用ibase_prepare &ibase_execute。

之后,打电话

ibase_commit_ret($T); // this mentain transaction active

ibase_commit($T) // this commit w或k close transaction
问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签