> No point saving the command output text if you then don't use it,
    nor should an intermediate variable be necessary.
    :-)<br><br>Of course. =)<br><br>I had tested 4.11 little bit but do not caught any bug more. <br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 8:19 PM, Jules <span dir="ltr">&lt;<a href="mailto:Jules@zend.to" target="_blank">Jules@zend.to</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="im">
    <br>
    <div>On 19/11/2012 14:51, Artyom Aleksandrov
      wrote:<br>
    </div>
    </div><blockquote type="cite"><div class="im">Five strings for postinst. If php5-sqlite does not
      support sqlite2, sed  change default data engine in preferences
      file.<br>
      In this case user don&#39;t get error during install.<br>
      <br>
      <br>
      ## Apache restart before<br>
      <br>
      # Check version of libsqlite use and change database engine if
      needed<br>
      libsqlite_check=`dpkg-query -W -f=&#39;${Depends}\n&#39; php5-sqlite |
      grep libsqlite0`<br>
      res_libsqlite=$?<br>
      if [ ! $res_libsqlite -eq 0 ]; then<br>
          sed &quot;s/^define(&#39;SqlBackend&#39;, &#39;SQLite&#39;)/define(&#39;SqlBackend&#39;,
      &#39;SQLite3&#39;)/&quot; -i /opt/zendto/config/preferences.php<br></div>
      fi                                                                                                                                                                   &amp;nb!
 sp; &amp;
nbsp;                                           
      <br>
      <br>
    </blockquote>
    Will this do the same in less space?<br>
    <br>
    dpkg-query -W -f=&#39;${Depends}\n&#39; php5-sqlite | grep -q libsqlite0<br>
    if [ $? -eq 0 ]; then<br>
      sed -e &quot;s/^define(&#39;SqlBackend&#39;, &#39;SQLite&#39;)/define(&#39;SqlBackend&#39;,
    &#39;SQLite3&#39;)/&quot; -i /opt/zendto/config/preferences.php<br>
    fi<br>
    <br>
    No point saving the command output text if you then don&#39;t use it,
    nor should an intermediate variable be necessary.<br>
    :-)<br>
    <br>
    <br>
    Cheers!<br>
    Jules.<br>
    <br>
    <br>
    <blockquote type="cite"><div class="im">### Setup all the stats logging below<br>
      <br>
      <br>
      </div><div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote"><div class="im">On Mon, Nov 19, 2012 at 5:16 PM, Artyom
          Aleksandrov <span dir="ltr">&lt;<a href="mailto:mailing.list@tem4uk.ru" target="_blank">mailing.list@tem4uk.ru</a>&gt;</span>
          wrote:<br>
          </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">I still got error
            (&#39;Warning: SQLite3::exec(): table addressbook already exists
            in /opt/zendto/lib/SQLite3.php on line 345 &#39;) with your
            SQLite3 from attach.<br>
            <br>
            So, I changed it again and  add function
            DBCheckTable($table).<br>
            You can found patch, src file (from this tread) and patched
            file in attach.<br>
            <br>
            <br>
            <br>
            And another one problem in DBUpdateAddressbook().<br>
            <br>
            1) First string<br></div>
              // SLASH $user =
            sqlite_escape_string($user);                                                                                                                                                              &amp;!
 nbsp;&amp;nbsp
;    
            <br><div><div class="h5">
                $user = $this-&gt;database-&gt;escapeString($user);<br>
            <br>
            2) End of func<br>
                  $now = time();<br>
                  $query = $this-&gt;database-&gt;exec(<br>
                             sprintf(&quot;INSERT INTO addressbook
            (username,name,email,lastused) VALUES
            (&#39;%s&#39;,&#39;%s&#39;,&#39;%s&#39;,&#39;%d&#39;)&quot;,<br>
                             $user, $name, $email, $now));<br>
            <br>
            As I see &#39;lastused&#39; set not NULL but in code INSERT do not
            use this.<br>
            I do not include DBUPdateAddressbook in patch because do not
            understand exactly what it should do.
            <div>
              <div><br>
                <br>
                <div class="gmail_extra"><br>
                  <br>
                  <div class="gmail_quote">On Mon, Nov 19, 2012 at 1:24
                    PM, Jules <span dir="ltr">&lt;<a href="mailto:Jules@zend.to" target="_blank">Jules@zend.to</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000">
                        <div> <br>
                          <div>On 16/11/2012 16:19, Artyom Aleksandrov
                            wrote:<br>
                          </div>
                          <blockquote type="cite">Hi,<br>
                            <br>
                            Today I tried last version from site 
                            (4.11-1) on Ubuntu 12.04 with sqlite3. <br>
                            It&#39;s not good =(<br>
                            <br>
                            1) After install from deb I got follow
                            error:<br>
                            <br>
                            PHP Fatal error:  Class &#39;SQLiteDatabase&#39; not
                            found in /opt/zendto/lib/SQLite.php on line
                            57<br>
                            <br>
                            Ok. &#39;postinst&#39; script do not understand that
                            I use sqlite3. It&#39;s not seriously but not
                            nice for user.<br>
                            Just edit preference.conf for use SQlite3
                            and run dpkg-reconfigure.<br>
                            <br>
                            I can submit patch for &#39;postinst&#39; here if
                            you want.<br>
                          </blockquote>
                        </div>
                        If you&#39;ve got a change to postinst that would
                        enable it to default to SQLite3 on Ubuntu 12 or
                        higher, that would be great, thanks! The
                        postinst script currently does not edit
                        preferences.php *at all*, as you&#39;ll have to edit
                        it by hand anyway before things will work to
                        insert your domain in various places and set up
                        the captcha keys.
                        <div><br>
                          <blockquote type="cite"> <br>
                            2) Ops! I catch next error:<br>
                            <br>
                            PHP Warning:  SQLite3::exec() expects
                            exactly 1 parameter, 2 given in
                            /opt/zendto/lib/SQLite3.php on line 331<br>
                            ...<br>
                            PHP Fatal error:  Call to a member function
                            writeToLog() on a non-object in
                            /opt/zendto/lib/SQLite3.php on line 78<br>
                            <br>
                            After fast comment this if statement with
                            $query-&gt;columnType(0) == SQLITE3_NULL I
                            can add user and login.<br>
                          </blockquote>
                        </div>
                        I have already fixed those two, new (gzipped)
                        SQLite3.php is attached.<br>
                        <br>
                        Cheers,<br>
                        Jules.<br>
                        <br>
                        <br>
                        <br>
                        <blockquote type="cite">
                          <div>
                            <div><br>
                              So, it&#39;s not really good, I think. I&#39;ll
                              continue test this case on next week.<br>
                              <br>
                              Good weekends and thank you.<br>
                              <br>
                              <div class="gmail_extra"><br>
                                <br>
                                <div class="gmail_quote">On Mon, Oct 29,
                                  2012 at 1:00 PM, Jules <span dir="ltr">&lt;<a href="mailto:Jules@zend.to" target="_blank">Jules@zend.to</a>&gt;</span>
                                  wrote:<br>
                                  <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                                    There isn&#39;t at the moment, but I
                                    might change that, yes.<br>
                                    <br>
                                    At the moment, I&#39;m afraid you&#39;ll
                                    have to stick to the betas and so on<br>
                                    that I release via <a href="http://zend.to" target="_blank">http://zend.to</a>.<br>
                                    <br>
                                    Have you tried 4.11? If not, is
                                    there any way you could please?<br>
                                    Many thanks!<br>
                                    <br>
                                    Jules.<br>
                                    <div>
                                      <div><br>
                                        On 26/10/2012 19:31, Brendon
                                        Baumgartner wrote:<br>
                                        &gt; Is there an svn server we
                                        can connect to? Any plans for
                                        one if not?<br>
                                        &gt;<br>
                                        &gt; Sent from my SmartPhone<br>
                                        &gt;<br>
                                        &gt; On Oct 26, 2012, at 3:04,
                                        Jules &lt;<a href="mailto:Jules@zend.to" target="_blank">Jules@zend.to</a>&gt;

                                        wrote:<br>
                                        &gt;<br>
                                        &gt;&gt; Have people tried the
                                        version 4.11 beta release I
                                        published?<br>
                                        &gt;&gt; Does it work okay?<br>
                                        &gt;&gt;<br>
                                        &gt;&gt; I need confirmation
                                        that there aren&#39;t any
                                        show-stopping bugs in it<br>
                                        &gt;&gt; before I release a
                                        &quot;release&quot; version of 4.11.<br>
                                        &gt;&gt;<br>
                                        &gt;&gt; Thanks all!<br>
                                        &gt;&gt;<br>
                                        &gt;&gt; Jules<br>
                                        &gt;&gt;<br>
                                        &gt;&gt; --<br>
                                        &gt;&gt; Julian Field MEng MBCS
                                        CITP CEng<br>
                                        &gt;&gt; <a href="http://www.Zend.To" target="_blank">www.Zend.To</a><br>
                                        &gt;&gt;<br>
                                        &gt;&gt; Twitter: @JulesFM<br>
                                        &gt;&gt; PGP footprint: EE81
                                        D763 3DB0 0BFD E1DC 7222 11F6
                                        5947 1415 B654<br>
                                        &gt;&gt;<br>
                                        &gt;&gt; &#39;A committee is a group
                                        of the unwilling, chosen from
                                        the unfit,<br>
                                        &gt;&gt;   to do the
                                        unnecessary.&#39; - Anon<br>
                                        &gt;&gt;<br>
                                        &gt;&gt;
                                        _______________________________________________<br>
                                        &gt;&gt; ZendTo mailing list<br>
                                        &gt;&gt; <a href="mailto:ZendTo@zend.to" target="_blank">ZendTo@zend.to</a><br>
                                        &gt;&gt; <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a><br>
                                        &gt;
                                        _______________________________________________<br>
                                        &gt; ZendTo mailing list<br>
                                        &gt; <a href="mailto:ZendTo@zend.to" target="_blank">ZendTo@zend.to</a><br>
                                        &gt; <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a><br>
                                        &gt;<br>
                                        &gt; Jules<br>
                                        &gt;<br>
                                        &gt; --<br>
                                        &gt; Julian Field MEng MBCS CITP
                                        CEng<br>
                                        &gt; <a href="http://www.Zend.To" target="_blank">www.Zend.To</a><br>
                                        &gt;<br>
                                        &gt; Twitter: @JulesFM<br>
                                        &gt; PGP footprint: EE81 D763
                                        3DB0 0BFD E1DC 7222 11F6 5947
                                        1415 B654<br>
                                        &gt;<br>
                                      </div>
                                    </div>
                                    &gt; &#39;It&#39;s in Apple&#39;s DNA that
                                    technology alone is not enough. It&#39;s<br>
                                    &gt;   technology married with
                                    liberal arts, married with the
                                    humanities,<br>
                                    &gt;   that yields us the result
                                    that makes our hearts sing.&#39; - Steve
                                    Jobs<br>
                                    <div>
                                      <div>_______________________________________________<br>
                                        ZendTo mailing list<br>
                                        <a href="mailto:ZendTo@zend.to" target="_blank">ZendTo@zend.to</a><br>
                                        <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a><br>
                                      </div>
                                    </div>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                              <br>
                              <fieldset></fieldset>
                              <br>
                              <pre>_______________________________________________
ZendTo mailing list
<a href="mailto:ZendTo@zend.to" target="_blank">ZendTo@zend.to</a>
<a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
                              <br>
                            </div>
                          </div>
                          <pre cols="72"><div><div>Jules

-- 
Julian Field MEng MBCS CITP CEng
<a href="http://www.Zend.To" target="_blank">www.Zend.To</a></div></div>

Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

&#39;When a man points a finger at someone else, he should remember
 that four of his fingers are pointing at himself.&#39; - Louis Nizer
</pre>
                        </blockquote>
                      </div>
                      <br>
                      _______________________________________________<br>
                      ZendTo mailing list<br>
                      <a href="mailto:ZendTo@zend.to" target="_blank">ZendTo@zend.to</a><br>
                      <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a><br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </div></div></blockquote>
        </div>
        <br>
      </div><div><div class="h5">
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
ZendTo mailing list
<a href="mailto:ZendTo@zend.to" target="_blank">ZendTo@zend.to</a>
<a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
      <br>
      </div></div><pre cols="72"><div><div class="h5">Jules

-- 
Julian Field MEng MBCS CITP CEng
<a href="http://www.Zend.To" target="_blank">www.Zend.To</a></div></div>

Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

&#39;We face neither East nor West: we face forward.&#39; - Kwame Nkrumah
</pre>
    </blockquote>
  </div>

<br>_______________________________________________<br>
ZendTo mailing list<br>
<a href="mailto:ZendTo@zend.to">ZendTo@zend.to</a><br>
<a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a><br></blockquote></div><br></div>