<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>bug with }-matching?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>I'm using the debian package of the cvs, geany 0.5.4cvs. The problem has been there since 0.5.0<BR>
though, far as I can tell.<BR>
<BR>
I'm currently working on a PHP project. When working with strings I often use {$var} notation<BR>
inside strings to print the value of the variable. Here's 1 example where geany would crash<BR>
(segmentation fault):<BR>
$sql = "UPDATE " . N7_DB_FMEXT . " SET extension='" .<BR>
                    n7_str_prep($n7_ext_up['name']) . "', mimegroup='" . n7_str_prep($n7_ext_up['mimegroup']) . "', mimetype='" . n7_str_prep($n7_ext_up['mimetype']) . "', mimeicon='" . n7_str_prep($n7_ext_up['mimeicon']) . "', comment='" . n7_str_prep($n7_ext_up['comment']) . "', ext_allowed={$n7_ext_up['allowed']}, ext_camoflash={$n7_ext_up['camoflash']}, ext_chmod='" . n7_str_prep($n7_ext_up['chmod']) . "' WHERE ext_id='$key'";<BR>
<BR>
I would type in the whole string and then add the {} surrounding the variable:<BR>
ext_allowed=$n7_ext_up['allowed'] -> ext_allowed={$n7_ext_up['allowed']}<BR>
<BR>
on typing the closing bracket (}) geany would crash.<BR>
<BR>
I first though it was only related to using brackets inside the strings or something, but found<BR>
out today that it's not. I was gonna add an "elseif" section to an if-else construct, and upon<BR>
typing in the closing bracket geany crashed again. This time geany is refusing to restart though<BR>
(I haven't tried restarting the comp).<BR>
<BR>
I'm sorry that I can't provide better debug-info - I don't know how. But if you got any questions<BR>
or things you'd like me to try I'll happily do it.<BR>
<BR>
best regards,<BR>
Kris</FONT>
</P>

</BODY>
</HTML>