This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250427 - socket exception occurred, preg_match
Summary: socket exception occurred, preg_match
Status: RESOLVED DUPLICATE of bug 220364
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-15 01:23 UTC by lassve
Modified: 2015-09-04 08:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (970.59 KB, text/plain)
2015-02-15 01:23 UTC, lassve
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lassve 2015-02-15 01:23:07 UTC
Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.25-b02

socket exception occurred, every time on preg_match

if(count($tran_array)>0)
    {
      $search_str=get_sku_inserted();
      foreach($tran_array AS $sku_tran_array)  
      {
       foreach($sku_tran_array[1] AS $key => $desc_str)
       {
         $pattern='/^((?!'.$sku_tran_array[0].' '.$key.').)*$/is'; 
         if(preg_match($pattern,$search_str)){ //-------------------------HERE
          $sql="INSERT INTO `$db_table_mart_translated`(lang,sku,description) VALUES('{$key}','{$sku_tran_array[0]}','".EscapeQuoteString($desc_str)."')";
          //mysql_query($sql) or die("MYSQL INSERT ERROR: ".mysql_error()." SQL: $sql");
          $search_str.=$sku_tran_array[0].' '.$key.',';
         } 
       }   
      }
    }
Comment 1 lassve 2015-02-15 01:23:20 UTC
Created attachment 152000 [details]
IDE log
Comment 2 Tomas Mysik 2015-02-26 11:17:56 UTC
Reassigning, see IDE log. Thanks.
Comment 3 Tomas Mysik 2015-09-04 08:32:31 UTC
Unfortunately, we need Xdebug log, see issue #220364. Thanks.

*** This bug has been marked as a duplicate of bug 220364 ***