Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
16c32e2b
Commit
16c32e2b
authored
Oct 09, 2007
by
pookey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing bindParam(), which should have it's 2nd param passed by reference, not value
parent
4d38b322
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Interface.php
lib/Doctrine/Adapter/Statement/Interface.php
+1
-1
Mock.php
lib/Doctrine/Adapter/Statement/Mock.php
+1
-1
Statement.php
lib/Doctrine/Connection/Statement.php
+2
-2
No files found.
lib/Doctrine/Adapter/Statement/Interface.php
View file @
16c32e2b
...
...
@@ -85,7 +85,7 @@ interface Doctrine_Adapter_Statement_Interface
* @param mixed $driverOptions
* @return boolean Returns TRUE on success or FALSE on failure.
*/
public
function
bindParam
(
$column
,
$variable
,
$type
=
null
,
$length
=
null
,
$driverOptions
=
array
());
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
,
$length
=
null
,
$driverOptions
=
array
());
/**
* closeCursor
* Closes the cursor, enabling the statement to be executed again.
...
...
lib/Doctrine/Adapter/Statement/Mock.php
View file @
16c32e2b
...
...
@@ -100,7 +100,7 @@ class Doctrine_Adapter_Statement_Mock implements Doctrine_Adapter_Statement_Inte
* @param mixed $driverOptions
* @return boolean Returns TRUE on success or FALSE on failure.
*/
public
function
bindParam
(
$column
,
$variable
,
$type
=
null
,
$length
=
null
,
$driverOptions
=
array
())
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
,
$length
=
null
,
$driverOptions
=
array
())
{
}
...
...
lib/Doctrine/Connection/Statement.php
View file @
16c32e2b
...
...
@@ -144,7 +144,7 @@ class Doctrine_Connection_Statement implements Doctrine_Adapter_Statement_Interf
* @param mixed $driverOptions
* @return boolean Returns TRUE on success or FALSE on failure.
*/
public
function
bindParam
(
$column
,
$variable
,
$type
=
null
,
$length
=
null
,
$driverOptions
=
array
())
public
function
bindParam
(
$column
,
&
$variable
,
$type
=
null
,
$length
=
null
,
$driverOptions
=
array
())
{
if
(
$type
===
null
)
{
return
$this
->
_stmt
->
bindParam
(
$column
,
$variable
);
...
...
@@ -435,4 +435,4 @@ class Doctrine_Connection_Statement implements Doctrine_Adapter_Statement_Interf
{
return
$this
->
_stmt
->
setFetchMode
(
$mode
,
$arg1
,
$arg2
);
}
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment