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 121807

Summary: Error is mistakenly detected
Product: php Reporter: kozlov <kozlov>
Component: CodeAssignee: Denis Anisimov <ads>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description kozlov 2007-11-13 13:39:17 UTC
Reproduced in build071112.

Copy following code to php file. Error is mistakenly detected.

if (preg_match('~^`(.+?)`\.(.+?)$~', $db_prefix, $match) != 0)
{
$queryTables = db_query("
SHOW TABLES
FROM `" . strtr($match[1], array('`' => '')) . "`
LIKE '" . str_replace('_', '\_', $match[2]) . "%'", false, false);
}
Comment 1 Denis Anisimov 2007-11-13 13:44:43 UTC
It is already fixed.
It was a problem with array function.
Comment 2 kozlov 2007-12-04 13:38:38 UTC
Verified in beta.