Saturday, March 04, 2006

Quick Zend Framework update.

Just wanted to give a quick update on Zend Framework.

We've already received a lot of great feedback. Thanks everyone!
We have a few problems in this initial release, some due to last minute changes (like Zend_Filter refactoring) and other things that slipped by or were planned for after the first code drop. So let me just give a quick recap of what those problems are so that you know what you can expect to be fixed in the coming days:

- Fix documentation (we mistakenly included old docs for ZDb_DataObject which doesn't exist, and didn't bundle the Controller docs). Thanks to the power of community there are some underground docs online now :) http://www.akrabat.com/2006/03/04/zend-framework-front-controller/ but we will also bundle the official docs in the next drop. We are also planning on beautifying and integrating the docs more closely with the Web site.

- Resolve issues that crepped in due to last minute Zend_Filter refactoring. Thanks to Chris Thompson who sent in instructions on getting it to run again:
1. In the file "Zend/Http.php" change the line
"$allow = Zend_InputFilter::HOST_ALLOW_DNS | Zend_InputFilter::HOST_ALLOW_LOCAL;"
to
"$allow = Zend_Filter::HOST_ALLOW_DNS | Zend_Filter::HOST_ALLOW_LOCAL;"
2. In the file "Zend/Filter.php", at the top add the line "include_once 'Zend/Filter/Exception.php';".
3. Also in the file "Zend/Filter.php", comment the line "throw new Zend_Filter_Exception('Internal error: IP determination failed');" (did not look into why -- I just commented it out)

- Setup NEWS file so that people can track the changes/fixes between code drops.

Some general issues which we're planning to resolve in the coming days:
- Bundle framework unit tests with the next drop
- Setup mailing list archives
- Provide anonymous SVN access so that people can pull current versions by themselves
- Fix Web site link to CLA
- Add instructions on how to subscribe to the mailing list in a prominent place on the framework site.

Thanks all for the feedback. It's pretty amazing how many people actually downloaded and looked at this stuff on a weekend. Late Friday evening is a developer friendly release :)

16 comments:

  1. Thanks for the update! It's good to see the makings of a community on the mailing list too.

    ReplyDelete
  2. Here are the diffs straight from Subversion. They're more complete and accurate.

    --- Http.php (revision 498)
    +++ Http.php (working copy)
    @@ -17,16 +17,16 @@
    * @license http://www.zend.com/license/framework/1_0.txt Zend Framework License version 1.0
    */

    -
    +
    /**
    * Zend_Uri base class
    */
    require_once 'Zend/Uri.php';

    /**
    - * Zend_InputFilter
    + * Zend_Filter
    */
    -require_once 'Zend/InputFilter.php';
    +require_once 'Zend/Filter.php';


    /**
    @@ -349,7 +349,7 @@
    *
    * @param string $host
    * @return boolean
    - * @uses Zend_InputFilter
    + * @uses Zend_Filter
    */
    public function validateHost($host = null)
    {
    @@ -363,15 +363,13 @@
    return false;
    }
    /**
    - * Check the host against the allowed values; delegated to Zend_InputFilter. As a feature, this only
    + * Check the host against the allowed values; delegated to Zend_Filter. As a feature, this only
    * validates Internet domain names and local network names; IP addresses are considered invalid.
    *
    * @link http://www.faqs.org/rfcs/rfc2396.html
    */
    - $array['foo'] = $host;
    - $filter = new Zend_InputFilter($array, false);
    - $allow = Zend_InputFilter::HOST_ALLOW_DNS | Zend_InputFilter::HOST_ALLOW_LOCAL;
    - return $filter->isHostname('foo', $allow) !== false;
    + $allow = Zend_Filter::HOST_ALLOW_DNS | Zend_Filter::HOST_ALLOW_LOCAL;
    + return Zend_Filter::isHostname($host, $allow) !== FALSE;
    }

    ReplyDelete
  3. --- Filter.php (revision 498)
    +++ Filter.php (working copy)
    @@ -19,6 +19,11 @@
    * License version 1.0
    */

    +
    +/** Zend_Filter_Exception */
    +require_once 'Zend/Filter/Exception.php';
    +
    +
    /**
    * @package Zend_Filter
    * @copyright Copyright (c) 2006 Zend Technologies USA Inc.
    @@ -339,22 +344,15 @@
    }

    // determine whether the input is formed as an IP address
    - if (!self::isIp($value)) {
    - throw new Zend_Filter_Exception('Internal error: IP determination failed');
    - }
    + $status = self::isIp($value);

    // if the input looks like an IP address
    - if ($status == 1) {
    + if ($status) {
    // if IP addresses are not allowed, then fail validation
    if (($allow & self::HOST_ALLOW_IP) == 0) {
    - // Input looks like an IP address, but IP address hostnames have not been allowed
    return FALSE;
    }
    - // if ip2long() fails, the IP is invalid
    - if (ip2long($value) == FALSE) {
    - // The IP address is invalid
    - return FALSE;
    - }
    +
    // IP passed validation
    return $value;
    }

    ReplyDelete
  4. Just a tip off - seems to be a broken link or the contributors license is missing. On this part of the FAQ it's linking to here (nothing there right now)

    ReplyDelete
  5. Thanks, Harry. The link should be to a PDF, and it looks like it has been corrected now.

    ReplyDelete
  6. All looks very promising!

    I tried getting an RSS feed (first changing Http.php and Filter.php as you described), but I got an $status indefined error in Zend_Filter::isHostname() on line 351. I tried:

    require_once 'Zend/Feed.php';
    $rss = Zend_Feed::import('http://www.phpied.com/feed');

    Looking into the diff that anonymous pasted above, I added
    $status = self::isIp($value);
    as line 349 in Filters.php and it fixed it for me.

    ReplyDelete
  7. After looking some portions of the framework, I wonder why the PHP CORE doesn't have something like Zend_Mail ..

    ReplyDelete
  8. we mistakenly included old docs for ZDb_DataObject which doesn't exist

    What happened to ZActiveRecord/ZDb_DataObject? This was one of the most anticipated features I was looking for in the Zend Framework and it's simply disappeared. Was the active record implementation ditched and the row data gateway (Zend_Db_Table) selected instead? Or will we see an active record implementation in future releases?

    ReplyDelete
  9. ZDb_DataObject doesn't exist yet, why?

    Thanks

    Jeff

    ReplyDelete
  10. ZDb_DataObject doesn't exist yet, why?

    Thanks

    Jeff


    When the Zend Framework was initially announced, ZActiveRecord was one of the libraries I was anticipating greatly. From what I gathered, it was renamed to ZDb_DataObject somewhere along the way.

    we mistakenly included old docs for ZDb_DataObject which doesn't exist

    From Andi's comments and the fact that a different ORM library (Zend_Db_Table is a Row Data Gateway, iirc) is in the framework imply that the active record library has been abandoned. Can anyone confirm this?

    ReplyDelete
  11. try the generic viagra way. If that wont work, try the generic cialis one.

    ReplyDelete
  12. I am enjoying ZF a great deal!
    I have written a demonstration using the framework.
    It demonstrates CRUD, Ajax, and multifield form editing with Ajax.
    It also includes pagination using parameters eg
    $paramsurl=$this->_getAllParams();
    $page=$paramsurl['page'];.

    I would be interested in your comments. If you like it enough you might be able to place it on the Zend developer site. The demo, notes and source can be reached at http://www.vernona.com

    ReplyDelete
  13. histoire erotique metro histoire salope bite chatte cul jouir nichon histoire x erotique histoire tunisie livre meilleure histoire drole histoire souris grenouille et cochon histoire de france en image cours histoire de l art histoire sans fin histoire ouest france gothic drole histoire blog histoire erotique maman histoire recits erotique gratuit histoire coquin gratuite histoire cochon de lesbienne histoire recit x erotique nouvelle histoire illustree enfant image et histoire drole histoire taboues histoire drole enfant histoire livre tueur fenetre histoire politique france 18e siecle contes et histoire pour enfant histoire maison edition monde histoire ville valence espagne histoire de la musique celte kevin cave histoire gay memoire sur histoire cinema histoire erotique sex 2nd histoire les fondements du monde contemporain info sur telephone portable histoire inventeur deug histoire de l art par correspondance reviser histoire niveau seconde monde grec histoire de la ville de paris histoire de femme attachee histoire cinema belge herbier and histoire and monde histoire and de and fessee histoire sexe antiquite histoire and sm histoire and aviation histoire domination sexuelle femme histoire parc disney land paris histoire image maternelle histoire costume assyrien antiquite assyrienne histoire sex pistols anneau intime histoire sm histoire cinema pornographique jeune garcon asiatique homme asiatique nu asiatique nu site groups.msn.com asiatique massage luxembourg photo fille asiatique photo asiatique acces et utilisation gratuit massage asiatique sexe restaurant asiatique rennes photo transsexuelle asiatique asiatique site rencontre photo asiatique poil rencontrer salope asiatique toulouse fille asiatique video gratuite de sexe asiatique de rencontre gratuit pour asiatique petite asiatique nu nouvelle escorte girl asiatique sur paris asiatique jeune belle fille blonde sexe asiatique mature video sexe asiatique amateur jeune asiatique nu gratuit dvd porno asiatique chat fille asiatique soin massage asiatique sexuel beauty asian boys video asian nude asiatique recoit jolie chat avec asiatique book asian boys free asian sex asian school girl asian big pussy asian amateur sex asian xxx girl asian mature nude sex asian college asian 4 you asian mature young boutique arme blanche asiatique asian hardcore video asian ass fuck little asian lesbian hot asian couple asiatique transsexuel asian black asian girl sexy asian ts free preview fucked pussy asian asian sex enjoy teen asian ass asian pussy fucked asian girl in bed asiatique en chaleur asian x epicerie asiatique paris xxx asian porno bizarr gallery hot asian asian lesbian free pics asian girls kiss asiatique recoit jolie young asian pussy asian young pussy asiatique charme nude asian fuck asian cum asian and dub and foundation asian teen pussies asian free porn film hot asian picture asian lady boy pre teen asian asian x model

    ReplyDelete
  14. nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site
    nice site

    ReplyDelete
  15. Nice update, thanks for it, I was looking for it.

    ReplyDelete
  16. I am also interested in this topic. I have spent a lot of time on searching this kind of topic. It is very informative.

    ReplyDelete