Zend_View_Stream does not exist

View: New views
6 Messages — Rating Filter:   Alert me  

Zend_View_Stream does not exist

by Pieter Kokx :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When I did update my trunk version of the incubator this morning, I was getting an error with the message "Zend_View::require_once(Zend/View/Stream.php) [function.Zend-View-require-once]: failed to open stream: No such file or directory".

It seemed that it depends on the 'short_open_tags' php.ini directive, I did turn it off (because I don't use it anyway), but I think that this could be a larger problem for those who are using the short open tags.

This is also a bug currently, because I thought that Zend_View_Stream should emulate short open tags, so it should be enabled when the short_open_tags directive is is turned Off, and not when it is turned On.

Re: Zend_View_Stream does not exist

by weierophinney :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-- Pieter Kokx <pieter@...> wrote
(on Sunday, 30 March 2008, 02:20 AM -0700):
> When I did update my trunk version of the incubator this morning, I was
> getting an error with the message
> "Zend_View::require_once(Zend/View/Stream.php)
> [function.Zend-View-require-once]: failed to open stream: No such file or
> directory".

Oop! I forgot to add Zend_View_Stream to the repo, as well as some
changes to the PluginLoader to facilitate its usage by Zend_View; these
are added now.

> It seemed that it depends on the 'short_open_tags' php.ini directive,
> I did turn it off (because I don't use it anyway), but I think that
> this could be a larger problem for those who are using the short open
> tags.
>
> This is also a bug currently, because I thought that Zend_View_Stream
> should emulate short open tags, so it should be enabled when the
> short_open_tags directive is is turned Off, and not when it is turned
> On.

I had it enabled for when short_open_tags was on simply so I could test
without tweaking INI settings; however, I've now updated it to only use
the stream wrapper when they are off.

Please remember that the incubator is a moving target, and often in an
unusable state. :-)

--
Matthew Weier O'Phinney
PHP Developer            | matthew@...
Zend - The PHP Company   | http://www.zend.com/

Re: Zend_View_Stream does not exist

by dinoboff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Aften Rob Allen post about stream wrapper I wrote one:
http://code.google.com/p/simple-php-template/source/browse/trunk/src/library/Spt/Stream/View.php

It allow customization of the replacement patterns and cache the template.

Matthew Weier O'Phinney-3 wrote:
-- Pieter Kokx <pieter@kokx.nl> wrote
(on Sunday, 30 March 2008, 02:20 AM -0700):
> When I did update my trunk version of the incubator this morning, I was
> getting an error with the message
> "Zend_View::require_once(Zend/View/Stream.php)
> [function.Zend-View-require-once]: failed to open stream: No such file or
> directory".

Oop! I forgot to add Zend_View_Stream to the repo, as well as some
changes to the PluginLoader to facilitate its usage by Zend_View; these
are added now.

> It seemed that it depends on the 'short_open_tags' php.ini directive,
> I did turn it off (because I don't use it anyway), but I think that
> this could be a larger problem for those who are using the short open
> tags.
>
> This is also a bug currently, because I thought that Zend_View_Stream
> should emulate short open tags, so it should be enabled when the
> short_open_tags directive is is turned Off, and not when it is turned
> On.

I had it enabled for when short_open_tags was on simply so I could test
without tweaking INI settings; however, I've now updated it to only use
the stream wrapper when they are off.

Please remember that the incubator is a moving target, and often in an
unusable state. :-)

--
Matthew Weier O'Phinney
PHP Developer            | matthew@zend.com
Zend - The PHP Company   | http://www.zend.com/

Re: Zend_View_Stream does not exist

by Rob Allen-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 30 Mar 2008, at 13:51, Matthew Weier O'Phinney wrote:
>
> I had it enabled for when short_open_tags was on simply so I could  
> test
> without tweaking INI settings; however, I've now updated it to only  
> use
> the stream wrapper when they are off.
>
> Please remember that the incubator is a moving target, and often in an
> unusable state. :-)


Looks good Matthew.  Mike and Paul's work is becoming *the* reference  
implementation to start from !

Don't suppose you fancy benchmarking the slowdown when using the  
stream do you?

Regards,

Rob...


Re: Zend_View_Stream does not exist

by weierophinney :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-- Rob Allen <rob@...> wrote
(on Sunday, 30 March 2008, 04:55 PM +0100):

> On 30 Mar 2008, at 13:51, Matthew Weier O'Phinney wrote:
> > I had it enabled for when short_open_tags was on simply so I could
> > test without tweaking INI settings; however, I've now updated it to
> > only  use the stream wrapper when they are off.
> >
> > Please remember that the incubator is a moving target, and often in an
> > unusable state. :-)
>
> Looks good Matthew.  Mike and Paul's work is becoming *the* reference  
> implementation to start from !
>
> Don't suppose you fancy benchmarking the slowdown when using the stream
> do you?

Stas and I plan on doing a variety of performance tests in the coming
weeks so that we can work up a performance guide for ZF.

--
Matthew Weier O'Phinney
PHP Developer            | matthew@...
Zend - The PHP Company   | http://www.zend.com/

Re: Zend_View_Stream does not exist

by weierophinney :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-- dinoboff <dinoboff@...> wrote
(on Sunday, 30 March 2008, 08:54 AM -0700):
> Aften  http://akrabat.com/2008/02/05/a-view-stream-with-zend_view/ Rob Allen
> post about stream wrapper  
>
> I wrote one:
> http://code.google.com/p/simple-php-template/source/browse/trunk/src/library/Spt/Stream/View.php
>
> It allow customization of the replacement patterns and cache the template.

Interesting approach, particularly caching. Would you want to consider
proposing caching functionality for Zend_View? I think it can actually
done higher than the streams layer, as the cache check could be done
prior to any inclusion of a view script. This is the sort of thing that
can add value to Zend_View while keeping Zend_View_Abstract constrained
to base functionality (loading plugins, registering escapers, etc.).

> Matthew Weier O'Phinney-3 wrote:
> >
> > -- Pieter Kokx <pieter@...> wrote
> > (on Sunday, 30 March 2008, 02:20 AM -0700):
> > > When I did update my trunk version of the incubator this morning, I was
> > > getting an error with the message
> > > "Zend_View::require_once(Zend/View/Stream.php)
> > > [function.Zend-View-require-once]: failed to open stream: No such file or
> > > directory".
> >
> > Oop! I forgot to add Zend_View_Stream to the repo, as well as some
> > changes to the PluginLoader to facilitate its usage by Zend_View; these
> > are added now.
> >
> > > It seemed that it depends on the 'short_open_tags' php.ini directive,
> > > I did turn it off (because I don't use it anyway), but I think that
> > > this could be a larger problem for those who are using the short open
> > > tags.
> > >
> > > This is also a bug currently, because I thought that Zend_View_Stream
> > > should emulate short open tags, so it should be enabled when the
> > > short_open_tags directive is is turned Off, and not when it is turned
> > > On.
> >
> > I had it enabled for when short_open_tags was on simply so I could test
> > without tweaking INI settings; however, I've now updated it to only use
> > the stream wrapper when they are off.
> >
> > Please remember that the incubator is a moving target, and often in an
> > unusable state. :-)

--
Matthew Weier O'Phinney
PHP Developer            | matthew@...
Zend - The PHP Company   | http://www.zend.com/