Skip to content

Commit

Permalink
Replaced preg_split() with explode() where no regular expressions are…
Browse files Browse the repository at this point in the history
… needed to improve performance
  • Loading branch information
Semias committed Jun 21, 2012
1 parent b9f8650 commit aa80417
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion saf/lib/PEAR/DB/DB-1.4.0/DB-1.4.0/DB/common.php
Expand Up @@ -402,7 +402,7 @@ function getOption($option)

function prepare($query)
{
$tokens = explode("[\&\?\!]", $query);
$tokens = preg_split("/[\&\?\!]/", $query);
$token = 0;
$types = array();

Expand Down
2 changes: 1 addition & 1 deletion saf/lib/PEAR/DB/DB-1.4.0/DB-1.4.0/DB/oci8.php
Expand Up @@ -341,7 +341,7 @@ function errorNative()
*/
function prepare($query)
{
$tokens = explode('[\&\?]', $query);
$tokens = preg_split('/[\&\?]/', $query);
$token = 0;
$types = array();
for ($i = 0; $i < strlen($query); $i++) {
Expand Down

0 comments on commit aa80417

Please sign in to comment.