<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.llaumgui.com/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Le blog de llaumgui - Balise - eZ Components</title>
  <link>http://www.llaumgui.com/</link>
  <atom:link href="http://www.llaumgui.com/feed/tag/eZ%20Components/rss2" rel="self" type="application/rss+xml"/>
  <description>Linux en général, Fedora en particulier...</description>
  <language>fr</language>
  <pubDate>Sat, 30 Aug 2008 12:36:06 +0200</pubDate>
  <copyright>http://creativecommons.org/licenses/by-nc-nd/2.5/</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>eZ Publish 4, php 5.2, CentOS 5, Remi et la spb-box</title>
    <link>http://www.llaumgui.com/post/eZ-Publish-4-php-52-CentOS-5-Remi-et-la-spb-box</link>
    <guid isPermaLink="false">urn:md5:146b1a12290e0b1ac89daa9df7861ed4</guid>
    <pubDate>Sat, 06 Oct 2007 10:31:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>CentOS</category><category>eZ Components</category><category>eZ Publish</category><category>eZ Publish 4.0</category><category>php</category><category>php5</category><category>Remi</category><category>spb-box</category><category>yum</category>    
    <description>&lt;p&gt;Que du beau monde dans un seul billet...&lt;/p&gt;


&lt;p&gt;A la lecture du &lt;a href=&quot;http://www.llaumgui.com/post/eZ-publish-40-alpha-1-support-du-php5#c4642&quot; hreflang=&quot;fr&quot;&gt;très instructif commentaire de Paul Borgermans&lt;/a&gt; laissé à la suite de &lt;a href=&quot;http://www.llaumgui.com/post/eZ-publish-40-alpha-1-support-du-php5&quot; hreflang=&quot;fr&quot; title=&quot;eZ publish 4.0 alpha 1, support du php5&quot;&gt;mon billet&lt;/a&gt; sur la première alpha d'&lt;a href=&quot;http://ez.no/ezpublish&quot;&gt;eZ Publish&lt;/a&gt; 4.0; et l'annonce qu'eZ 4.0 ainsi qu'&lt;a href=&quot;http://ez.no/ezcomponents&quot; hreflang=&quot;en&quot; title=&quot;Open source content management framework&quot;&gt;eZ Components&lt;/a&gt; iraient plus vers un compatibilité php 5.2 que 5.1 : j'ai décidé de mettre à jour la version de php de la &lt;a href=&quot;http://www.llaumgui.com/tag/spb-box&quot; hreflang=&quot;fr&quot;&gt;spb-box&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;Pour cela, j'ai fait confiance à l'&lt;a href=&quot;http://remi.collet.free.fr/&quot; hreflang=&quot;fr&quot; title=&quot;Les RPMs de Remi&quot;&gt;ami Remi&lt;/a&gt; (Attention prononcer Remi et surtout pas Rémi) et à &lt;a href=&quot;http://remi.collet.free.fr/index.php?2005/10/02/15-presentation-du-site&quot; hreflang=&quot;fr&quot;&gt;son dépôt&lt;/a&gt;. Pour ceux qui ne connaisse pas Remi, surnommé dans le milieu &amp;quot;&lt;em&gt;Serial Builder&lt;/em&gt;&amp;quot;, il propose les dernières versions php/MySQL pour Fedora mais aussi pour les RHEL 4 &amp;amp; 5.&lt;/p&gt;    &lt;p&gt;Une petite ligne de commande :&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;root@spb-box ~&amp;gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;wget&lt;/span&gt; http://remi.collet.&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;free&lt;/span&gt;.fr/rpms/el5.i386/remi-release&lt;span style=&quot;color: #000000;&quot;&gt;-5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-2&lt;/span&gt;.el5.remi.noarch.rpm \&lt;br /&gt;
rpm -Uvh remi-release&lt;span style=&quot;color: #000000;&quot;&gt;-5&lt;/span&gt;*.rpm \&lt;br /&gt;
yum --&lt;span style=&quot;color: #007800;&quot;&gt;enablerepo=&lt;/span&gt;remi update php&lt;/code&gt;


&lt;p&gt;Et me voila en php 5.&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;root@spb-box ~&amp;gt; rpm -qa php&lt;br /&gt;
php&lt;span style=&quot;color: #000000;&quot;&gt;-5.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.4&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.el5.remi&lt;/code&gt;


&lt;p&gt;Tenant à activer le dépôt de Remi par défaut  (il est très réactif au niveau des mises à jour) mais ne tenant pas à mettre à jour mon serveur MySQL, j'ai configuré le dépôt de la sorte.&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;remi&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;name=&lt;/span&gt;Les RPM de remi pour Enterprise Linux &lt;span style=&quot;color: #000000;&quot;&gt;5&lt;/span&gt; - &lt;span style=&quot;color: #007800;&quot;&gt;$basearch&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;baseurl=&lt;/span&gt;http://remi.collet.&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;free&lt;/span&gt;.fr/rpms/el5.&lt;span style=&quot;color: #007800;&quot;&gt;$basearch&lt;/span&gt;/&lt;br /&gt;
&amp;nbsp; &amp;nbsp; http://iut-info.univ-reims.fr/remirpms/el5.&lt;span style=&quot;color: #007800;&quot;&gt;$basearch&lt;/span&gt;/&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;enabled=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;gpgcheck=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;gpgkey=&lt;/span&gt;file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;exclude=&lt;/span&gt;mysql mysql-server mysql-libs&lt;/code&gt;


&lt;p&gt;A force de mettre des clauses &lt;code&gt;exclude&lt;/code&gt; dans mes fichiers repo, j'en fini par croire qu'il faudrait inventer un clause &lt;em&gt;include&lt;/em&gt;...&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/eZ-Publish-4-php-52-CentOS-5-Remi-et-la-spb-box#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/eZ-Publish-4-php-52-CentOS-5-Remi-et-la-spb-box#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/368</wfw:commentRss>
      </item>
    
  <item>
    <title>eZ publish 4.0 alpha 1, support du php5</title>
    <link>http://www.llaumgui.com/post/eZ-publish-40-alpha-1-support-du-php5</link>
    <guid isPermaLink="false">urn:md5:d2c4263ccaebaaf48b38c99a2dc3bdf7</guid>
    <pubDate>Thu, 04 Oct 2007 23:03:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Développement web</category>
        <category>CentOS</category><category>eZ Components</category><category>eZ Publish</category><category>ezipb</category><category>ezipb-shoutbox</category><category>php5</category><category>php6</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://ez.no/company/news/new_ez_publish_releases_include_php_5_support_and_the_ez_find_search_engine_extension&quot; hreflang=&quot;en&quot; title=&quot;New eZ Publish releases include PHP 5 support and the eZ Find search engine extension&quot;&gt;Aujourd'hui&lt;/a&gt;, a été publiée la première version alpha d'&lt;a href=&quot;http://ez.no&quot; hreflang=&quot;en&quot; title=&quot;eZ Publish Open Source Enterprise Content Management System&quot;&gt;eZ publish&lt;/a&gt; 4.0.&lt;br /&gt;
Je dois dire que j'attendais cette version avec impatience car elle introduit une nouveauté majeure : le support de php 5 (et php 6) et... Et... Et bien, malheureusement c'est à peu près tout.&lt;br /&gt;Pas de gros changement, une certaine continuité qui va surement faciliter les migrations d'eZ 3.x vers eZ 4.0 mais qui laisse quand même un petit goût de déception...&lt;/p&gt;    &lt;h2&gt;Support php 5&lt;/h2&gt;
&lt;p&gt;Selon moi, eZ 4.0 marche bien mieux sous php 5 que &lt;a href=&quot;http://pubsvn.ez.no/nextgen_php5/&quot; hreflang=&quot;en&quot;&gt;le port communautaire&lt;/a&gt; que j'utilisais jusqu'alors. Ça ce ressent aux erreurs et warning remontés ainsi qu'aux performances, surtout lors de l'installation de la bête. Cependant &lt;a href=&quot;http://fr2.php.net/manual/fr/language.oop5.visibility.php&quot; hreflang=&quot;fr&quot; title=&quot;php : Visibilité&quot;&gt;les attributs private et autres protected&lt;/a&gt; sont encore bien présent en commentaires mais peu dans le code.&lt;/p&gt;
&lt;h2&gt;Arrivée d'eZ Components&lt;/h2&gt;
&lt;p&gt;Une de mes autres déceptions est l'implémentation d'&lt;a href=&quot;http://ez.no/ezcomponents&quot; hreflang=&quot;en&quot; title=&quot;eZ Components is an enterprise ready general purpose PHP components library used independently or together for PHP application development.&quot;&gt;eZC&lt;/a&gt; qui n'est pas très visible. En fait il faut lire entre les lignes et comprendre qu'eZ 4 ouvre la voie de l'intégration d'eZC  mais n'est pas 100% développée sous eZC comme beaucoup (dont moi) l'auraient pensé.&lt;/p&gt;
&lt;h2&gt;Les bonnes surprises&lt;/h2&gt;
&lt;p&gt;Qui dit peu de modifications dit grosse compatibilité avec eZ 3.9.x que j'utilisais jusqu'alors. J'ai donc passé &lt;a href=&quot;http://labo.llaumgui.com/&quot; hreflang=&quot;fr&quot;&gt;mon labo&lt;/a&gt; sous eZ 4 et mes extensions &lt;a href=&quot;http://trac.llaumgui.com/wiki/ezipb&quot; hreflang=&quot;fr&quot; title=&quot;ezipb (Connecteur IPB pour eZ publish )&quot;&gt;ezipb&lt;/a&gt; et &lt;a href=&quot;http://trac.llaumgui.com/wiki/ezipb-shoutbox%20%3A%20Installer%20ezibp-shoutbox&quot; hreflang=&quot;fr&quot; title=&quot;ezipb-shoutbox : Installer ezibp-shoutbox&quot;&gt;ezipb-shoutbox&lt;/a&gt; tournent parfaitement jusqu'à présent.&lt;br /&gt;
Le débug est enfin valide &lt;a href=&quot;http://fr.wikipedia.org/wiki/XHTML&quot; hreflang=&quot;fr&quot;&gt;xHTML&lt;/a&gt;, ce qui permet de contrôler la validité de son code plus facilement et évitera les problèmes sous IE.&lt;/p&gt;
&lt;h2&gt;Php 5.2 minimum ?&lt;/h2&gt;
&lt;p&gt;Bien que je n'ai rien vu passer là dessus et qu'&lt;a hreflang=&quot;en&quot; href=&quot;http://ez.no/ezcomponents/requirements&quot;&gt;eZC demande php 5.1.1 minimum&lt;/a&gt;, lors de mon installation sur ma &lt;a href=&quot;http://www.centos.org/&quot; hreflang=&quot;en&quot; title=&quot;The Community ENTerprise Operating System&quot;&gt;CentOS&lt;/a&gt; qui tourne en php 5.1.6, j'ai eu la surprise de tomber sur le message suivant :&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;
Unsupported PHP version 5.1&lt;/p&gt;
&lt;p&gt;eZ Publish 3.x does not run with PHP 4.&lt;br /&gt;For more information about supported software please visit &lt;a href=&quot;http://www.llaumgui.com/post/%5C%22http://ez.no/download/ez_publish%5C%22&quot;&gt;eZ Publish download page&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Après analyse du code :&lt;/p&gt;
&lt;pre&gt;&lt;br /&gt;if ( version_compare( phpversion(), '5.2' ) &amp;lt; 0 )&lt;br /&gt;{&lt;br /&gt;	print( &amp;quot;&amp;lt;h1&amp;gt;Unsupported PHP version &amp;quot; . phpversion() . &amp;quot;&amp;lt;/h1&amp;gt;&amp;quot; );&lt;br /&gt;	print( &amp;quot;&amp;lt;p&amp;gt;eZ Publish 3.x does not run with PHP 4.&amp;lt;/p&amp;gt;&amp;quot;.&lt;br /&gt;           &amp;quot;&amp;lt;p&amp;gt;For more information about supported software please visit &amp;quot;.&lt;br /&gt;           &amp;quot;&amp;lt;a href=\&amp;quot;http://ez.no/download/ez_publish\&amp;quot; &amp;gt;eZ Publish download page&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;quot; );&lt;br /&gt;    exit;&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;Au final, vu le flou du discourt, j'ai commenté le tout et ça marche très bien jusque là...&lt;/p&gt;
&lt;h2&gt;En résumé :&lt;/h2&gt;
&lt;p&gt;Vivement la version final !&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/eZ-publish-40-alpha-1-support-du-php5#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/eZ-publish-40-alpha-1-support-du-php5#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/366</wfw:commentRss>
      </item>
    
</channel>
</rss>