php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22171 Support of Transaction Control Statements
Submitted: 2003-02-11 11:40 UTC Modified: 2003-02-14 05:16 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: werner dot schuermann at cneweb dot de Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.3.0 OS: NT2000
Private report: No CVE-ID: None
 [2003-02-11 11:40 UTC] werner dot schuermann at cneweb dot de
I?m using MySQL Version 4.0.8 Gamma Release and PHP 4.3. There is the transaction control implemented. 
Now I tried to use the statements "set autocommit=0, begin, commit or rollback" within a php-script. At runtime I have got an error: Notice: Use of undefined constant BEGIN - assumes 'BEGIN' in test.php on line xx.
The control statements in MySQL are correctly functioning !
I think the transaction control statements aren't supported in PHP yet.
Are you able to advice me ?
Many Thanks,
Werner Schuermann

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-11 16:55 UTC] georg@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Could you please provide a short sample of code?!
(only query related part of code)
 [2003-02-14 05:16 UTC] hholzgra@php.net
you have to use mysql_query("begin");
not mysql_query(begin);

 [2026-05-29 18:28 UTC] git@php.net
Automatic comment on behalf of devnexen
Revision: https://github.com/php/php-src/commit/263743b8442e2adecc23643fe7fbc010bd770c38
Log: ext/standard: http(s) wrapper corrupts the basic auth header on percent-encoded userinfo.
 [2026-05-29 18:28 UTC] git@php.net
-Status: Not a bug +Status: Closed
 [2026-05-29 18:30 UTC] git@php.net
Automatic comment on behalf of devnexen
Revision: https://github.com/php/php-src/commit/f357164ca5883fed7dbecfdc05c1e0b309ec8418
Log: ext/standard: http(s) wrapper corrupts the basic auth header on percent-encoded userinfo.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Jul 03 09:00:02 2026 UTC