cvs: pear-core /PEAR Start.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Thu, 09 Apr 2009 22:10:02 +0000 |
| Subject: | cvs: pear-core /PEAR Start.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8312@lists.php.net to get a copy of this message | ||
dufuz Thu Apr 9 22:10:02 2009 UTC
Modified files:
/pear-core/PEAR Start.php
Log:
ereg not required here
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/Start.php?r1=1.14&r2=1.15&diff_format=u
Index: pear-core/PEAR/Start.php
diff -u pear-core/PEAR/Start.php:1.14 pear-core/PEAR/Start.php:1.15
--- pear-core/PEAR/Start.php:1.14 Tue Feb 10 01:21:42 2009
+++ pear-core/PEAR/Start.php Thu Apr 9 22:10:02 2009
@@ -118,7 +118,7 @@
if ($this->php_bin && !is_file($this->php_bin . $phpexe)) {
$this->php_bin = '';
} else {
- if (!ereg(":", $this->php_bin)) {
+ if (strpos($this->php_bin, ':') === 0) {
$this->php_bin = getcwd() . DIRECTORY_SEPARATOR . $this->php_bin;
}
}