[fw-general] Zend Form isValid() custom errors

2008-07-30 Thread Dario Zamuner
Hi all! I don't know if it's wanted or not, but I was pretty confused by this behavior. // In the controller add an error to the element of a form $form-captcha-addErrors(array(Inserire i caratteri corretti)); // Checking if it's marked as invalid echo $form-captcha-hasErrors(); // output - 1

[fw-general] Updating Data using update() function

2008-07-30 Thread Rohit83
Hi All, I use update() function like $n = $db-update('bugs', $data, 'bug_id = 2'); but when this function executes all the rows in the table changes to the value i have passed to update function instead of only one row that i have given in the function. This is bug or i am using function wrongly

[fw-general] Zend_Rest_Server and Zend_Rest_Client error

2008-07-30 Thread Adler Medrado
Hello All. I am trying to create a Zend_Rest_Server but it is not working and always return a response like that: rest generator=zend version=1.0 response messageAn unknown error occured. Please try again./message /response statusfailed/status /rest Does anyone have some example? i think i am

Re: [fw-general] Zend_Rest_Server and Zend_Rest_Client error

2008-07-30 Thread Matthew Weier O'Phinney
-- Adler Medrado [EMAIL PROTECTED] wrote (on Wednesday, 30 July 2008, 09:48 AM -0300): I am trying to create a Zend_Rest_Server but it is not working and always return a response like that: rest generator=zend version=1.0 response messageAn unknown error occured. Please try again./message

Re: [fw-general] Zend_Rest_Server and Zend_Rest_Client error

2008-07-30 Thread Adler Medrado
Hi. The docbloc was not pasted into the email. The code already have the PHPDoc for the method hello and it is not working. Thank you. adler 2008/7/30 Matthew Weier O'Phinney [EMAIL PROTECTED] You need to read the documentation more carefully. All server implementations require that you

[fw-general] Adding HTML Elements to Zend_Form_Elements

2008-07-30 Thread Chris Tankersley
I have a few form elements where I want a small 'info' button (just an image with an onClick trigger) to appear next to the form element itself, but I'm not sure how to go about doing this. Should I extend Zend_Form_Element_X or is this something a decorator could handle? What I am looking for in

Re: [fw-general] Updating Data using update() function

2008-07-30 Thread Bill Karwin
Rohit83 wrote: Hi All, I use update() function like $n = $db-update('bugs', $data, 'bug_id = 2'); but when this function executes all the rows in the table changes to the value i have passed to update function instead of only one row that i have given in the function. This is bug or i

Re: [fw-general] Cross site scripting in Zend_Db_Statement_Exception handling

2008-07-30 Thread Bill Karwin
Matthew Weier O'Phinney-3 wrote: However, you're right -- the value should be escaped. I'll escalate the issue. Really? Message strings in Exceptions should be HTML-escaped? If this constitutes an XSS vulnerability, then one could equally argue that PHP should automatically escape any

[fw-general] Search Lucene Index Notice

2008-07-30 Thread Lorenz, Marcus
Hello everybody, i have a strange notice when doing a complete reindex of my documents. I always get the following notices when trying to index an danish (one of many) document: Notice: Uninitialized string offset: 35 in C:\Inetpub\wwwroot\fhg\web\library\Zend\Search\Lucene\Index\DictionaryLo

Re: [fw-general] Cross site scripting in Zend_Db_Statement_Exception handling

2008-07-30 Thread James Dempster
On Wed, Jul 30, 2008 at 6:14 PM, Bill Karwin [EMAIL PROTECTED] wrote: Matthew Weier O'Phinney-3 wrote: However, you're right -- the value should be escaped. I'll escalate the issue. Really? Message strings in Exceptions should be HTML-escaped? Yeah this would be a pain, it would

Re: [fw-general] Adding HTML Elements to Zend_Form_Elements

2008-07-30 Thread Matthew Weier O'Phinney
-- Chris Tankersley [EMAIL PROTECTED] wrote (on Wednesday, 30 July 2008, 12:30 PM -0400): I have a few form elements where I want a small 'info' button (just an image with an onClick trigger) to appear next to the form element itself, but I'm not sure how to go about doing this. Should I extend

Re: [fw-general] Cross site scripting in Zend_Db_Statement_Exception handling

2008-07-30 Thread Matthew Weier O'Phinney
-- Bill Karwin [EMAIL PROTECTED] wrote (on Wednesday, 30 July 2008, 10:14 AM -0700): Matthew Weier O'Phinney-3 wrote: However, you're right -- the value should be escaped. I'll escalate the issue. Really? Message strings in Exceptions should be HTML-escaped? If this constitutes

RE: [fw-general] Search Lucene Index Notice

2008-07-30 Thread Alexander Veremyev
Could you provide an example of indexed document which causes an error and (if possible) provide your index for testing? With best regards, Alexandeer Veremyev. -Original Message- From: Lorenz, Marcus [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2008 9:34 PM To:

[fw-general] capture STDERR with Zend_Log

2008-07-30 Thread sgrobins
Hello, I am using Zend_Log for all my output in a script that is run from cron. Everything works great. I have it writing to a log file each night. The problem is if the script encounters a Fatal Error or a PHP Warning, those are not put into the log file, since that output didn't go

RE: [fw-general] capture STDERR with Zend_Log

2008-07-30 Thread Vincent de Lau
I've created a custom error handler for this. See http:// php.net/set_error_handler and http://php.net/set_exception_handler Also note the stuff about @ error suppression, which is used in Zend_Loader if (error_reporting() == 0) return; at the start of the error handler should do the trick.

RE: [fw-general] Cross site scripting inZend_Db_Statement_Exception handling

2008-07-30 Thread Terre Porter
Matthew wrote: The potential failure here is that Zend_View probably should be escaping variables by default, and this is an improvement slated for 2.0.0. Is this for all fields that are sent to a view? Are we talking about something like: $this-view-myvar = blah; And that being

[fw-general] $_GET is not cleared

2008-07-30 Thread Matthias Coy
Hi folks, I'm new to the framework, and I'm kind of stuck. I have a simple .. you can say blog, so that I can learn how things work in the Zend Framework. I have a index, as in http://localhost/index/index. Of course I have a userlist, which would be http://localhost/users. So if I want to

RE: [fw-general] capture STDERR with Zend_Log

2008-07-30 Thread Vincent de Lau
-Original Message- From: Vincent de Lau [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2008 8:49 PM To: fw-general@lists.zend.com Subject: RE: [fw-general] capture STDERR with Zend_Log I've created a custom error handler for this. See http:// php.net/set_error_handler and

[fw-general] Zend_Soap_Clieny compatibility matrix

2008-07-30 Thread Alexander Veremyev
Hi all, I've just set up Zend_Soap_Clieny compatibility matrix document within our wiki pages (http://framework.zend.com/wiki/x/GYBg). It's intended to collect Zend_Soap_Client against other SOAP implementations compatibility information. Collected info should be used to reach compatibility with

Re: [fw-general] capture STDERR with Zend_Log

2008-07-30 Thread Matthew Weier O'Phinney
-- sgrobins [EMAIL PROTECTED] wrote (on Wednesday, 30 July 2008, 11:37 AM -0700): I am using Zend_Log for all my output in a script that is run from cron. Everything works great. I have it writing to a log file each night. The problem is if the script encounters a Fatal Error or a PHP

[fw-general] Proposal suggested for a Zend_Feed_Reader

2008-07-30 Thread Pádraic Brady
Hi all, Being the ZF junkie that I am, I have been considering creating a proposal to address a few issues with Zend_Feed. Rather than let loose with the Proposal right away I figured I'd open the floor here (and on #zfdev where, for once :p, I am logged in at the moment), see what the

Re: [fw-general] Cross site scripting inZend_Db_Statement_Exception handling

2008-07-30 Thread Matthew Weier O'Phinney
-- Terre Porter [EMAIL PROTECTED] wrote (on Wednesday, 30 July 2008, 02:54 PM -0400): Matthew wrote: The potential failure here is that Zend_View probably should be escaping variables by default, and this is an improvement slated for 2.0.0. Is this for all fields that are sent to a view?

Re: [fw-general] $_GET is not cleared

2008-07-30 Thread Matthew Weier O'Phinney
-- Matthias Coy [EMAIL PROTECTED] wrote (on Wednesday, 30 July 2008, 08:52 PM +0200): I'm new to the framework, and I'm kind of stuck. I have a simple .. you can say blog, so that I can learn how things work in the Zend Framework. I have a index, as in http://localhost/index/index. Of course

Re: [fw-general] IP calculations

2008-07-30 Thread Micah Gersten
I haven't heard any responses. Does anyone have any thoughts on this? Is there a better list for this? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Micah Gersten wrote: Does Zend have any functions for IP calculations? I looked in the Docs, but

Re: [fw-general] IP calculations

2008-07-30 Thread till
Hi, On Wed, Jul 30, 2008 at 4:30 PM, Micah Gersten [EMAIL PROTECTED] wrote: I haven't heard any responses. Does anyone have any thoughts on this? Is there a better list for this? can you explain what IP calculations do? Cheers, Till

[fw-general] Re: [fw-webservices] Proposal suggested for a Zend_Feed_Reader

2008-07-30 Thread till
On Wed, Jul 30, 2008 at 3:08 PM, Pádraic Brady [EMAIL PROTECTED] wrote: (...) Your thoughts are welcome. Even if you write a longer email than me ;). I'll keep it short! :) Sounds pretty awesome, I feel your pain with Zend_Feed (with no offense meant to anyone of course) and I'd welcome your

Re: [fw-general] IP calculations

2008-07-30 Thread Bill Karwin
Micah Gersten wrote: Does Zend have any functions for IP calculations? I looked in the Docs, but couldn't find any. Has anyone suggested this? As Till mentioned, we may not have a clear understanding of what calculations you have in mind. I would guess that most people who need to do

RE: [fw-general] Cross site scriptinginZend_Db_Statement_Exception handling

2008-07-30 Thread Terre Porter
Second, if we escape by default, there will be a method for pulling the raw value, so that you can prevent any double escaping (or any escaping at all). The idea is to have a poka-yoke -- do the right thing by default and protect developers from mistakes, and provide functionality for

[fw-general] ZF + AMF

2008-07-30 Thread Wil Sinclair
Hi all, just wanted to break the good news that Adobe has chosen ZF as the vehicle to deliver AMF support to the PHP community. You'll find more details here: http://andigutmans.blogspot.com/2008/07/adobe-to-contribute-amf-support- to-zend.html Don't forget to comment on the proposal:

Re: [fw-general] IP calculations

2008-07-30 Thread Micah Gersten
Yes. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Vincent de Lau wrote: From: till [mailto:[EMAIL PROTECTED] On Wed, Jul 30, 2008 at 4:30 PM, Micah Gersten [EMAIL PROTECTED] wrote: I haven't heard any responses. Does anyone have any thoughts

[fw-general] Re: [fw-webservices] Proposal suggested for a Zend_Feed_Reader

2008-07-30 Thread Hector Virgen
This is a good idea and I think you've covered all of the issues I've had with Zend_Feed, particularly with reading Slashdot's RSS feed (which I still have not been able to do). I like your caching idea. I'd like to be able to set a default cache as a static property (similar to

[fw-general] Zend Form: Multiple buttons on one line

2008-07-30 Thread Mary Nicole Hicks
This one has me stumped. I am just adding buttons to a form with Zend Framework. Each of these buttons is ending up on a single line. Does anyone know how to get multiple buttons on to one line using Zend_Form? Any example code to do this? -- View this message in context:

Re: [fw-general] Zend Form: Multiple buttons on one line

2008-07-30 Thread Matthew Weier O'Phinney
-- Mary Nicole Hicks [EMAIL PROTECTED] wrote (on Wednesday, 30 July 2008, 08:04 PM -0700): This one has me stumped. I am just adding buttons to a form with Zend Framework. Each of these buttons is ending up on a single line. Does anyone know how to get multiple buttons on to one line using

Fwd: [fw-general] IP calculations

2008-07-30 Thread till
Oops... Didn't even notice that I only replied to Vincent. :) -- Forwarded message -- From: till [EMAIL PROTECTED] Date: Wed, Jul 30, 2008 at 5:22 PM Subject: Re: [fw-general] IP calculations To: Vincent de Lau [EMAIL PROTECTED] On Wed, Jul 30, 2008 at 5:19 PM, Vincent de Lau

Re: [fw-general] Cross site scripting in Zend_Db_Statement_Exception handling

2008-07-30 Thread till
On Wed, Jul 30, 2008 at 6:04 PM, Julian Davchev [EMAIL PROTECTED] wrote: +1 for not escaping this. +1 as well I see no good reason anyway to show those error messages to the end user. :) Also, I feel this is overkill to the max escaping all the vars that go into a view. The developer should be

Re: [fw-general] ZF + AMF

2008-07-30 Thread till
On Wed, Jul 30, 2008 at 6:58 PM, Wil Sinclair [EMAIL PROTECTED] wrote: Hi all, just wanted to break the good news that Adobe has chosen ZF as the vehicle to deliver AMF support to the PHP community. This sounds a bit weird... -the- vehicle? http://amfphp.org/ This has been around since 2003

Re: Fwd: [fw-general] IP calculations

2008-07-30 Thread Micah Gersten
Yes, that's exactly what I need. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com till wrote: Oops... Didn't even notice that I only replied to Vincent. :) -- Forwarded message -- From: till [EMAIL PROTECTED] Date: Wed, Jul 30, 2008 at