Page 1 of 2

Zend Framework Preview Released

Posted: Sat Mar 04, 2006 3:26 am
by Christopher
It is at http://framework.zend.com/.

It is a preview release and there is not much there. This code looks interesting from the little I looked through it. The controllers don't look too bad but I need some time try them out to see what functionality they provide. Lots of missing files, but there is enough there to get a feel for where they are headed. Not a unit test in sight, which is a little troubling.

Strangely, there are few examples and those that are there don't work. I got the WebServices ones working, but it took a few code tweeks. Here's what I had to do:
  • 1. Set your include path to have the "/../ZendFramework-0.1.1/library" directory in it.

    2. 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;"


    3. In the file "Zend/Filter.php", at the top add the line "include_once 'Zend/Filter/Exception.php';".

    4. 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 -- just did it)

    5. Also in the file "Zend/Filter.php", at the top of function isHostname() just about the line you just commented out -- add as the first line "$status = false;" to get rid of the Notice. Pretty sloppy code here if you look everywhere that $status is used (pick 0/1 or true/false).

Posted: Sat Mar 04, 2006 9:32 am
by neophyte
I've been wondering about when a dominant framework would emerge for PHP. While there are several now I haven't seen any major opensource apps developed around them. (If I'm miss informed someone let me know). What, how, which one will one framework emerge as the dominant PHP framework?

Posted: Sat Mar 04, 2006 11:29 am
by Buddha443556
Seems this framework is aimed at the enterprise environment though I don't expect anything else from Zend.

Posted: Mon Mar 06, 2006 5:21 am
by Christopher
The 0.1 release has been out a few days and comments have started to roll in. It looks like they will follow-up with another release fairly soon that should clean up the usual install problems that come out of a first public release of code. Overall things look interesting.

Posted: Wed Mar 08, 2006 2:01 pm
by Christopher
The 0.2 release is available here with a few bug fixes and documetation for the Controllers. There are also some examples floating around the web. If I get some time I will post examples here.

Posted: Wed Mar 08, 2006 3:23 pm
by Buddha443556
I notice they got the unit test included. Looks like they have a good release earily and release often plan going.

Posted: Wed Mar 08, 2006 4:52 pm
by Roja
Sadly, I can't touch the framework. They chose, despite a multitude of sources warning them before release, to use a license that was completely incompatible with virtually all opensource licenses (except the PHPL and the BSDL).

http://blog.joshuaeichorn.com/archives/ ... k-license/

They continue to stand by their choice, and will not be changing, so "defacto standard" it will never be in the opensource world.

Posted: Wed Mar 08, 2006 5:19 pm
by neophyte
I'm going to think out loud about the Zend Framework ---

Of course it's not opensource, they want to make it into a cash cow. Someday they will charge for the framework either up front or at point-of-sale. To remain competitive with .NET PHP has to become OOP and it has to have a standard Framework. The OOP is here with PHP 5 and I understand 6 will be more so.... The framework is under development. Besides if Oracle is truly looking at Zend they've got to be thinking enterprise which means: framework.

Feel free to comment on my free associations...

Posted: Wed Mar 08, 2006 5:25 pm
by Roja
neophyte wrote:Of course it's not opensource, they want to make it into a cash cow.
Read the comments on that blog by Andi Gutmans - a Zend employee. It is opensource, and they did intend for it to be usable with opensource apps (and commercial).

The difference is that they feel that the GPL is a pest, and trying to be compatible with it is unreasonable. They are 100% entitled to that opinion, but when the GPL is the #1 opensource license in use today (search on freshmeat or sourceforge), it makes their "commitment" to work with the opensource community a bit less credible.
neophyte wrote:Someday they will charge for the framework either up front or at point-of-sale. To remain competitive with .NET PHP has to become OOP and it has to have a standard Framework. The OOP is here with PHP 5 and I understand 6 will be more so.... The framework is under development. Besides if Oracle is truly looking at Zend they've got to be thinking enterprise which means: framework.

Feel free to comment on my free associations...
They are definitely not looking to turn the framework into a cashcow, from everything I've read. On the contrary, they are trying to provide a solid, usable framework to show the value of PHP. Nothing wrong with that at all, except for their choice of a license locking out the majority of opensource programmers.

As to Oracle working with Zend.. Oracle used to work with Peoplesoft back in the day. Ask Peoplesoft how THAT worked out for them.. :)

Posted: Wed Mar 08, 2006 6:45 pm
by neophyte
Thanks for your comments Roja - your posts are always nformative. Still Zend had to know their license was incompatible. So the question remains why? I'm not saying my theory is right -- it was a stab in the dark.

Posted: Wed Mar 08, 2006 7:42 pm
by shiflett
The Zend Framework is open source, and thank goodness it is not GPL. :-)

I can't imagine a worse idea for a framework. No one would be able to use it except those who don't mind that anything they build with it must be GPL. Sure, that's fine for the projects on SF, but it's silly to think that it works for everyone. A true open source project should give you a choice rather than forcing it upon you, and that's what the Zend Framework does.

Posted: Wed Mar 08, 2006 8:52 pm
by neophyte
shiflett wrote: A true open source project should give you a choice rather than forcing it upon you, and that's what the Zend Framework does.
Can you elaborate a bit on that last comment....

Thanks

Posted: Wed Mar 08, 2006 8:53 pm
by Christopher
One thing that has changed, which the above conversation touched upon, is that the Zend Framework has wisely changed it license to a BSD license that is compatable with the GPL. Despuite some early FUD (like that posted above) common sense has prevailed.

Posted: Wed Mar 08, 2006 9:44 pm
by Roja
shiflett wrote:The Zend Framework is open source, and thank goodness it is not GPL. :-)
No one suggested it be under the GPL.

Many people have suggested before, during, and after the release that it be GPL compatible - such as the BSDL.
shiflett wrote:A true open source project should give you a choice rather than forcing it upon you, and that's what the Zend Framework does.
No, the Zend Framework does not. It gives you NO choice if you are in a GPL project. Thats the problem. Zend chose a license that is not only incompatible with the most popular license in the opensource community, they also chose to not even use an existing license.

Its their choice, but they left GPL programmers no choice at all but to say no.

Posted: Wed Mar 08, 2006 10:27 pm
by Buddha443556
I was wondering why PHPUnit2 was missing from the preview? Is the ZFL why PHPUnit2 (under BSDL) isn't included in the distribution?
Its their choice, but they left GPL programmers no choice at all but to say no.
I think you got a point.