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 - Error is mistakenly detected
Summary: Error is mistakenly detected
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-13 13:39 UTC by kozlov
Modified: 2008-02-22 13:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.