Find & Replace bug

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
xtom
Posts: 46
Joined: Thu Jun 10, 2010 5:19 pm
Location: Kildare, Ireland
Contact:

Find & Replace bug

Post by xtom »

If I do a Find and Replace All for $test to $test['test'] with Wrap at end selected I end up with $test['test']['test'] instead of $test['test']

Code: Select all

<?php

$test;

$test;

?>

Find - $test - Replace All with - $test['test']

<?php
// result
$test['test']['test'];

$test['test']['test'];

?>

If I click undo after I end up with the desired result.
reacher
Posts: 40
Joined: Fri Oct 28, 2011 11:16 am

Re: Find & Replace bug

Post by reacher »

What software are you using? WeBuilder? RapidPHP? I cannot reproduce in WeBuilder, latest build, Windows 7 Ultimate 32-bit.
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Re: Find & Replace bug

Post by MikeyB »

I can reproduce that in WeBuilder 11.21 on Windows 7 Professional, 32 bit

Only happens if $test is in the replace with box, anything else is fine, even $blah[test] is okay
Also seems okay if Origin is set to "Entire Scope" so it's only when "From cursor"
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Find & Replace bug

Post by Aivars »

Verified, added to the list.
Blumentals Software Programmer
xtom
Posts: 46
Joined: Thu Jun 10, 2010 5:19 pm
Location: Kildare, Ireland
Contact:

Re: Find & Replace bug

Post by xtom »

Thanks, I'm using the latest version of Webuilder 11.2.2.131 and it happens with other variable names too, I just changed them to test for the example. I think it might be a new bug that wasn't in previous versions because I don't think it happened before, but not sure.
Post Reply