Permalink
Browse files

Replace all occurrences of ereg*() functions with preg*() functions.

  • Loading branch information...
1 parent 54d50ca commit c95d9101782215ab68947d0ae8ecc884d85f0df4 @tpenguin tpenguin committed May 18, 2014
Showing with 302 additions and 302 deletions.
  1. +4 −4 includes/nusoap/lib/class.xmlschema.php
  2. +27 −27 includes/nusoap/lib/nusoap.php
  3. +3 −3 includes/pear/Image/Canvas/GD.php
  4. +2 −2 includes/pear/Image/Canvas/PDF.php
  5. +1 −1 includes/pear/Image/Graph/Layout.php
  6. +5 −5 includes/pear/OS/Guess.php
  7. +1 −1 includes/pear/PEAR/DependencyDB.php
  8. +1 −1 includes/pear/PEAR/PackageFile.php
  9. +1 −1 includes/pear/PEAR/PackageFile/Parser/v1.php
  10. +1 −1 includes/pear/PEAR/Registry.php
  11. +2 −2 includes/pear/XML/Parser.php
  12. +2 −2 includes/phplayers/layersmenu-common.inc.php
  13. +4 −4 includes/smarty/plugins/function.html_button.php
  14. +4 −4 includes/smarty/plugins/function.html_link.php
  15. +1 −1 includes/smarty/plugins/function.html_menu_sub.php
  16. +2 −2 includes/smarty/plugins/function.plugin.php
  17. +1 −1 includes/telnet/magrathea.inc.php
  18. +2 −2 modules/account/account.inc.php
  19. +1 −1 modules/account/account_xmlrpc.php
  20. +1 −1 modules/account_billing/account_billing.inc.php
  21. +18 −18 modules/affiliate/affiliate.inc.php
  22. +6 −6 modules/affiliate_commission/affiliate_commission.inc.php
  23. +1 −1 modules/cart/cart.inc.php
  24. +1 −1 modules/checkout/checkout.inc.php
  25. +24 −24 modules/core/weblog.inc.php
  26. +1 −1 modules/core/webmin.inc.php
  27. +3 −3 modules/db_mapping/db_mapping.inc.php
  28. +3 −3 modules/email_queue/email_queue.inc.php
  29. +21 −21 modules/email_template/email_template.inc.php
  30. +5 −5 modules/faq/faq.inc.php
  31. +6 −6 modules/file/file.inc.php
  32. +3 −3 modules/host_registrar_plugin/host_registrar_plugin.inc.php
  33. +1 −1 modules/host_tld/host_tld.inc.php
  34. +4 −4 modules/htaccess_dir/htaccess_dir.inc.php
  35. +3 −3 modules/import/import.inc.php
  36. +10 −10 modules/module/dev.inc.php
  37. +11 −11 modules/module/module.inc.php
  38. +15 −15 modules/newsletter/newsletter.inc.php
  39. +14 −14 modules/newsletter_subscriber/newsletter_subscriber.inc.php
  40. +5 −5 modules/product/product.inc.php
  41. +1 −1 modules/product_img/product_img.inc.php
  42. +3 −3 modules/radius/radius.inc.php
  43. +1 −1 modules/report/class.ReportParser.php
  44. +3 −3 modules/report/report.inc.php
  45. +1 −1 modules/staff/staff.inc.php
  46. +1 −1 modules/tax/tax.inc.php
  47. +1 −1 modules/ticket_attachment/ticket_attachment.inc.php
  48. +4 −4 modules/voip/voip.inc.php
  49. +1 −1 modules/voip_pool/voip_pool.inc.php
  50. +2 −2 modules/voip_vm/voip_vm.inc.php
  51. +1 −1 plugins/checkout/BLUEPAY.php
  52. +1 −1 plugins/checkout/EWAY.php
  53. +4 −4 plugins/checkout/GOEMERCHANT.php
  54. +2 −2 plugins/checkout/NETBILLING.php
  55. +2 −2 plugins/checkout/NOCHEXS.php
  56. +1 −1 plugins/checkout/OPTIMALPAYMENTS.php
  57. +1 −1 plugins/checkout/PSIGATE.php
  58. +1 −1 plugins/checkout/TRUSTCOMMERCE.php
  59. +3 −3 plugins/checkout/USA_EPAY.php
  60. +1 −1 plugins/checkout/VERISIGN_PFPRO.php
  61. +1 −1 plugins/discount/test.php
  62. +12 −12 plugins/import/Amember_2_3_6.php
  63. +9 −9 plugins/import/DreamAccount.php
  64. +12 −12 plugins/import/HostAdmin.php
  65. +5 −5 plugins/import/WHM_AutoPilot.php
  66. +2 −2 plugins/import/WhoisCart.php
  67. +1 −1 plugins/product/VOIP.php
  68. +2 −2 plugins/provision/PLESK_8.php
  69. +2 −2 plugins/provision/PLESK_RELOADED_7_5.php
@@ -199,7 +199,7 @@ function schemaStartElement($parser, $name, $attrs) {
if(count($attrs) > 0){
foreach($attrs as $k => $v){
// if ns declarations, add to class level array of valid namespaces
- if(ereg("^xmlns",$k)){
+ if(preg_match("/^xmlns/i",$k)){
//$this->xdebug("$k: $v");
//$this->xdebug('ns_prefix: '.$this->getPrefix($k));
if($ns_prefix = substr(strrchr($k,':'),1)){
@@ -311,7 +311,7 @@ function schemaStartElement($parser, $name, $attrs) {
// minOccurs="0" maxOccurs="unbounded" />
// </sequence>
// </complexType>
- if(isset($attrs['base']) && ereg(':Array$',$attrs['base'])){
+ if(isset($attrs['base']) && preg_match('/:Array$/',$attrs['base'])){
$this->xdebug('complexType is unusual array');
$this->complexTypes[$this->currentComplexType]['phpType'] = 'array';
} else {
@@ -331,7 +331,7 @@ function schemaStartElement($parser, $name, $attrs) {
// minOccurs="0" maxOccurs="unbounded" />
// </sequence>
// </complexType>
- if(isset($attrs['base']) && ereg(':Array$',$attrs['base'])){
+ if(isset($attrs['base']) && preg_match('/:Array$/',$attrs['base'])){
$this->xdebug('complexType is unusual array');
$this->complexTypes[$this->currentComplexType]['phpType'] = 'array';
} else {
@@ -741,7 +741,7 @@ function getTypeDef($type){
} elseif(isset($this->attributes[$type])){
$this->xdebug("in getTypeDef, found attribute $type");
return $this->attributes[$type];
- } elseif (ereg('_ContainedType$', $type)) {
+ } elseif (preg_match('/_ContainedType$/', $type)) {
$this->xdebug("in getTypeDef, have an untyped element $type");
$typeDef['typeClass'] = 'simpleType';
$typeDef['phpType'] = 'scalar';
@@ -562,7 +562,7 @@ function serialize_val($val,$name=false,$type=false,$name_ns=false,$type_ns=fals
case (is_array($val) || $type):
// detect if struct or array
$valueType = $this->isArraySimpleOrStruct($val);
- if($valueType=='arraySimple' || ereg('^ArrayOf',$type)){
+ if($valueType=='arraySimple' || preg_match('/^ArrayOf/',$type)){
$this->debug("serialize_val: serialize array");
$i = 0;
if(is_array($val) && count($val)> 0){
@@ -765,7 +765,7 @@ function contractQname($qname){
*/
function expandQname($qname){
// get element prefix
- if(strpos($qname,':') && !ereg('^http://',$qname)){
+ if(strpos($qname,':') && !preg_match('@^http://@',$qname)){
// get unqualified name
$name = substr(strstr($qname,':'),1);
// get ns prefix
@@ -914,7 +914,7 @@ function timestamp_to_iso8601($timestamp,$utc=true){
'([0-9]{2})(\.[0-9]*)?'. // seconds ss.ss...
'(Z|[+\-][0-9]{2}:?[0-9]{2})?'; // Z to indicate UTC, -/+HH:MM:SS.SS... for local tz's
- if(ereg($eregStr,$datestr,$regs)){
+ if(preg_match('@'.$eregStr.'@',$datestr,$regs)){
return sprintf('%04d-%02d-%02dT%02d:%02d:%02dZ',$regs[1],$regs[2],$regs[3],$regs[4],$regs[5],$regs[6]);
}
return false;
@@ -939,7 +939,7 @@ function iso8601_to_timestamp($datestr){
'([0-9]{2}):'. // minutes mm:
'([0-9]{2})(\.[0-9]+)?'. // seconds ss.ss...
'(Z|[+\-][0-9]{2}:?[0-9]{2})?'; // Z to indicate UTC, -/+HH:MM:SS.SS... for local tz's
- if(ereg($eregStr,$datestr,$regs)){
+ if(preg_match('@'.$eregStr.'@',$datestr,$regs)){
// not utc
if($regs[8] != 'Z'){
$op = substr($regs[8],0,1);
@@ -1267,7 +1267,7 @@ function schemaStartElement($parser, $name, $attrs) {
if(count($attrs) > 0){
foreach($attrs as $k => $v){
// if ns declarations, add to class level array of valid namespaces
- if(ereg("^xmlns",$k)){
+ if(preg_match("/^xmlns/i",$k)){
//$this->xdebug("$k: $v");
//$this->xdebug('ns_prefix: '.$this->getPrefix($k));
if($ns_prefix = substr(strrchr($k,':'),1)){
@@ -1379,7 +1379,7 @@ function schemaStartElement($parser, $name, $attrs) {
// minOccurs="0" maxOccurs="unbounded" />
// </sequence>
// </complexType>
- if(isset($attrs['base']) && ereg(':Array$',$attrs['base'])){
+ if(isset($attrs['base']) && preg_match('/:Array$/',$attrs['base'])){
$this->xdebug('complexType is unusual array');
$this->complexTypes[$this->currentComplexType]['phpType'] = 'array';
} else {
@@ -1399,7 +1399,7 @@ function schemaStartElement($parser, $name, $attrs) {
// minOccurs="0" maxOccurs="unbounded" />
// </sequence>
// </complexType>
- if(isset($attrs['base']) && ereg(':Array$',$attrs['base'])){
+ if(isset($attrs['base']) && preg_match('/:Array$/',$attrs['base'])){
$this->xdebug('complexType is unusual array');
$this->complexTypes[$this->currentComplexType]['phpType'] = 'array';
} else {
@@ -1809,7 +1809,7 @@ function getTypeDef($type){
} elseif(isset($this->attributes[$type])){
$this->xdebug("in getTypeDef, found attribute $type");
return $this->attributes[$type];
- } elseif (ereg('_ContainedType$', $type)) {
+ } elseif (preg_match('/_ContainedType$/i', $type)) {
$this->xdebug("in getTypeDef, have an untyped element $type");
$typeDef['typeClass'] = 'simpleType';
$typeDef['phpType'] = 'scalar';
@@ -2173,7 +2173,7 @@ function soap_transport_http($url, $curl_options = NULL, $use_curl = false){
$this->ch_options = $curl_options;
}
$this->use_curl = $use_curl;
- ereg('\$Revisio' . 'n: ([^ ]+)', $this->revision, $rev);
+ preg_match('@\$Revisio' . 'n: ([^ ]+)@', $this->revision, $rev);
$this->setHeader('User-Agent', $this->title.'/'.$this->version.' ('.$rev[1].')');
}
@@ -2936,7 +2936,7 @@ function getResponse(){
}
}
// remove 100 headers
- if (isset($lb) && ereg('^HTTP/1.1 100',$data)) {
+ if (isset($lb) && preg_match('@^HTTP/1.1 100@',$data)) {
unset($lb);
$data = '';
}//
@@ -3102,7 +3102,7 @@ function getResponse(){
if ($data == '') {
// have nothing left; just remove 100 header(s)
$data = $savedata;
- while (ereg('^HTTP/1.1 100',$data)) {
+ while (preg_match('@^HTTP/1.1 100@',$data)) {
if ($pos = strpos($data,"\r\n\r\n")) {
$data = ltrim(substr($data,$pos));
} elseif($pos = strpos($data,"\n\n") ) {
@@ -3654,7 +3654,7 @@ function service($data){
}
$this->debug("In service, query string=$qs");
- if (ereg('wsdl', $qs) ){
+ if (preg_match('/wsdl/i', $qs) ){
$this->debug("In service, this is a request for WSDL");
if($this->externalWSDLURL){
if (strpos($this->externalWSDLURL,"://")!==false) { // assume URL
@@ -3725,7 +3725,7 @@ function parse_http_headers() {
// get the character encoding of the incoming request
if(isset($this->headers['content-type']) && strpos($this->headers['content-type'],'=')){
$enc = str_replace('"','',substr(strstr($this->headers["content-type"],'='),1));
- if(eregi('^(ISO-8859-1|US-ASCII|UTF-8)$',$enc)){
+ if(preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i',$enc)){
$this->xml_encoding = strtoupper($enc);
} else {
$this->xml_encoding = 'US-ASCII';
@@ -3754,7 +3754,7 @@ function parse_http_headers() {
$enc = substr(strstr($v, '='), 1);
$enc = str_replace('"', '', $enc);
$enc = str_replace('\\', '', $enc);
- if (eregi('^(ISO-8859-1|US-ASCII|UTF-8)$', $enc)) {
+ if (preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i', $enc)) {
$this->xml_encoding = strtoupper($enc);
} else {
$this->xml_encoding = 'US-ASCII';
@@ -3788,7 +3788,7 @@ function parse_http_headers() {
$enc = substr(strstr($v, '='), 1);
$enc = str_replace('"', '', $enc);
$enc = str_replace('\\', '', $enc);
- if (eregi('^(ISO-8859-1|US-ASCII|UTF-8)$', $enc)) {
+ if (preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i', $enc)) {
$this->xml_encoding = strtoupper($enc);
} else {
$this->xml_encoding = 'US-ASCII';
@@ -4126,7 +4126,7 @@ function send_response() {
$payload .= $this->getDebugAsXMLComment();
}
$this->outgoing_headers[] = "Server: $this->title Server v$this->version";
- ereg('\$Revisio' . 'n: ([^ ]+)', $this->revision, $rev);
+ preg_match('@\$Revisio' . 'n: ([^ ]+)@', $this->revision, $rev);
$this->outgoing_headers[] = "X-SOAP-Server: $this->title/$this->version (".$rev[1].")";
// Let the Web server decide about this
//$this->outgoing_headers[] = "Connection: Close\r\n";
@@ -4214,7 +4214,7 @@ function parseRequest($headers, $data) {
if (strpos($headers['content-type'], '=')) {
$enc = str_replace('"', '', substr(strstr($headers["content-type"], '='), 1));
$this->debug('Got response encoding: ' . $enc);
- if(eregi('^(ISO-8859-1|US-ASCII|UTF-8)$',$enc)){
+ if(preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i',$enc)){
$this->xml_encoding = strtoupper($enc);
} else {
$this->xml_encoding = 'US-ASCII';
@@ -4781,7 +4781,7 @@ function start_element($parser, $name, $attrs)
$this->currentSchema->schemaStartElement($parser, $name, $attrs);
$this->appendDebug($this->currentSchema->getDebug());
$this->currentSchema->clearDebug();
- } elseif (ereg('schema$', $name)) {
+ } elseif (preg_match('/schema$/i', $name)) {
$this->debug('Parsing WSDL schema');
// $this->debug("startElement for $name ($attrs[name]). status = $this->status (".$this->getLocalPart($name).")");
$this->status = 'schema';
@@ -4800,7 +4800,7 @@ function start_element($parser, $name, $attrs)
if (count($attrs) > 0) {
// register namespace declarations
foreach($attrs as $k => $v) {
- if (ereg("^xmlns", $k)) {
+ if (preg_match("/^xmlns/i", $k)) {
if ($ns_prefix = substr(strrchr($k, ':'), 1)) {
$this->namespaces[$ns_prefix] = $v;
} else {
@@ -4825,7 +4825,7 @@ function start_element($parser, $name, $attrs)
$attrs = array();
}
// get element prefix, namespace and name
- if (ereg(':', $name)) {
+ if (preg_match('/:/', $name)) {
// get ns prefix
$prefix = substr($name, 0, strpos($name, ':'));
// get ns
@@ -4990,7 +4990,7 @@ function start_element($parser, $name, $attrs)
*/
function end_element($parser, $name){
// unset schema status
- if (/*ereg('types$', $name) ||*/ ereg('schema$', $name)) {
+ if (preg_match('/schema$/i', $name)) {
$this->status = "";
$this->appendDebug($this->currentSchema->getDebug());
$this->currentSchema->clearDebug();
@@ -6587,7 +6587,7 @@ function start_element($parser, $name, $attrs) {
$key_localpart = $this->getLocalPart($key);
// if ns declarations, add to class level array of valid namespaces
if($key_prefix == 'xmlns'){
- if(ereg('^http://www.w3.org/[0-9]{4}/XMLSchema$',$value)){
+ if(preg_match('@^http://www.w3.org/[0-9]{4}/XMLSchema$@',$value)){
$this->XMLSchemaVersion = $value;
$this->namespaces['xsd'] = $this->XMLSchemaVersion;
$this->namespaces['xsi'] = $this->XMLSchemaVersion.'-instance';
@@ -6624,7 +6624,7 @@ function start_element($parser, $name, $attrs) {
[6] nextDimension ::= Digit+ ','
*/
$expr = '([A-Za-z0-9_]+):([A-Za-z]+[A-Za-z0-9_]+)\[([0-9]+),?([0-9]*)\]';
- if(ereg($expr,$value,$regs)){
+ if(preg_match('@'.$expr.'@',$value,$regs)){
$this->message[$pos]['typePrefix'] = $regs[1];
$this->message[$pos]['arrayTypePrefix'] = $regs[1];
if (isset($this->namespaces[$regs[1]])) {
@@ -7422,7 +7422,7 @@ function send($msg, $soapaction = '', $timeout=0, $response_timeout=30) {
// detect transport
switch(true){
// http(s)
- case ereg('^http',$this->endpoint):
+ case preg_match('/^http/i',$this->endpoint):
$this->debug('transporting via HTTP');
if($this->persistentConnection == true && is_object($this->persistentConnection)){
$http =& $this->persistentConnection;
@@ -7444,10 +7444,10 @@ function send($msg, $soapaction = '', $timeout=0, $response_timeout=30) {
$http->setEncoding($this->http_encoding);
}
$this->debug('sending message, length='.strlen($msg));
- if(ereg('^http:',$this->endpoint)){
+ if(preg_match('/^http:/',$this->endpoint)){
//if(strpos($this->endpoint,'http:')){
$this->responseData = $http->send($msg,$timeout,$response_timeout,$this->cookies);
- } elseif(ereg('^https',$this->endpoint)){
+ } elseif(preg_match('/^https/',$this->endpoint)){
//} elseif(strpos($this->endpoint,'https:')){
//if(phpversion() == '4.3.0-dev'){
//$response = $http->send($msg,$timeout,$response_timeout);
@@ -7506,7 +7506,7 @@ function parseResponse($headers, $data) {
if (strpos($headers['content-type'], '=')) {
$enc = str_replace('"', '', substr(strstr($headers["content-type"], '='), 1));
$this->debug('Got response encoding: ' . $enc);
- if(eregi('^(ISO-8859-1|US-ASCII|UTF-8)$',$enc)){
+ if(preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i',$enc)){
$this->xml_encoding = strtoupper($enc);
} else {
$this->xml_encoding = 'US-ASCII';
@@ -1770,7 +1770,7 @@ function _version()
$php_info = ob_get_contents();
ob_end_clean();
- if (ereg("<td[^>]*>GD Version *<\/td><td[^>]*>([^<]*)<\/td>",
+ if (preg_match("@<td[^>]*>GD Version *<\/td><td[^>]*>([^<]*)<\/td>@",
$php_info, $result))
{
$version = $result[1];
@@ -1779,9 +1779,9 @@ function _version()
}
}
- if (ereg('1\.[0-9]{1,2}', $version)) {
+ if (preg_match('/1\.[0-9]{1,2}/', $version)) {
return 1;
- } elseif (ereg('2\.[0-9]{1,2}', $version)) {
+ } elseif (preg_match('/2\.[0-9]{1,2}/', $version)) {
return 2;
} else {
return 0;
@@ -993,14 +993,14 @@ function _version()
$php_info = ob_get_contents();
ob_end_clean();
- if (ereg("<td[^>]*>PDFlib GmbH Version *<\/td><td[^>]*>([^<]*)<\/td>",
+ if (preg_match("@<td[^>]*>PDFlib GmbH Version *<\/td><td[^>]*>([^<]*)<\/td>@",
$php_info, $result))
{
$version = $result[1];
}
}
- if (ereg('([0-9]{1,2})\.[0-9]{1,2}(\.[0-9]{1,2})?', trim($version), $result)) {
+ if (preg_match('/([0-9]{1,2})\.[0-9]{1,2}(\.[0-9]{1,2})?/', trim($version), $result)) {
return $result[1];
} else {
return $version;
@@ -175,7 +175,7 @@ function _updateCoords()
function _push($edge, $size = '100%')
{
$result = array();
- if (ereg("([0-9]*)\%", $size, $result)) {
+ if (preg_match("/([0-9]*)\%/", $size, $result)) {
$this->_alignSize[$edge] = array(
'value' => min(100, max(0, $result[1])),
'unit' => 'percentage'
@@ -158,7 +158,7 @@ function parseSignature($uname = null)
case 'Linux' :
$extra = $this->_detectGlibcVersion();
// use only the first two digits from the kernel version
- $release = ereg_replace('^([[:digit:]]+\.[[:digit:]]+).*', '\1', $parts[2]);
+ $release = preg_replace('/^([[:digit:]]+\.[[:digit:]]+).*/', '\1', $parts[2]);
break;
case 'Mac' :
$sysname = 'darwin';
@@ -176,10 +176,10 @@ function parseSignature($uname = null)
$cpu = 'powerpc';
}
}
- $release = ereg_replace('^([[:digit:]]+\.[[:digit:]]+).*', '\1', $parts[2]);
+ $release = preg_replace('/^([[:digit:]]+\.[[:digit:]]+).*/', '\1', $parts[2]);
break;
default:
- $release = ereg_replace('-.*', '', $parts[2]);
+ $release = preg_replace('/-.*/', '', $parts[2]);
break;
}
@@ -258,7 +258,7 @@ function _detectGlibcVersion()
} // features.h
if (!($major && $minor) && @is_link('/lib/libc.so.6')) {
// Let's try reading the libc.so.6 symlink
- if (ereg('^libc-(.*)\.so$', basename(readlink('/lib/libc.so.6')), $matches)) {
+ if (preg_match('/^libc-(.*)\.so$/', basename(readlink('/lib/libc.so.6')), $matches)) {
list($major, $minor) = explode('.', $matches[1]);
}
}
@@ -329,7 +329,7 @@ function _matchFragment($fragment, $value)
{
if (strcspn($fragment, '*?') < strlen($fragment)) {
$reg = '^' . str_replace(array('*', '?', '/'), array('.*', '.', '\\/'), $fragment) . '$';
- return eregi($reg, $value);
+ return preg_match('@'.$reg.'@i', $value);
}
return ($fragment == '*' || !strcasecmp($fragment, $value));
}
@@ -449,7 +449,7 @@ function rebuildDB()
*/
function _lock($mode = LOCK_EX)
{
- if (!eregi('Windows 9', php_uname())) {
+ if (!preg_match('/Windows 9/i', php_uname())) {
if ($mode != LOCK_UN && is_resource($this->_lockFp)) {
// XXX does not check type of lock (LOCK_SH/LOCK_EX)
return true;
@@ -332,7 +332,7 @@ function &fromTgzFile($file, $state)
if ($name == 'package.xml') {
$xml = $name;
break;
- } elseif (ereg('package.xml$', $name, $match)) {
+ } elseif (preg_match('/package.xml$/i', $name, $match)) {
$xml = $name;
break;
}
@@ -337,7 +337,7 @@ function _element_end_1_0($xp, $name)
$this->current_maintainer['role'] = $data;
break;
case 'version':
- //$data = ereg_replace ('[^a-zA-Z0-9._\-]', '_', $data);
+ //$data = preg_replace ('/[^a-zA-Z0-9._\-]/', '_', $data);
if ($this->in_changelog) {
$this->current_release['version'] = $data;
} else {
@@ -777,7 +777,7 @@ function _readFileMap()
*/
function _lock($mode = LOCK_EX)
{
- if (!eregi('Windows 9', php_uname())) {
+ if (!preg_match('/Windows 9/i', php_uname())) {
if ($mode != LOCK_UN && is_resource($this->lock_fp)) {
// XXX does not check type of lock (LOCK_SH/LOCK_EX)
return true;
Oops, something went wrong.

0 comments on commit c95d910

Please sign in to comment.