Re: [fw-general] are php unit tests from trunk supposed to pass?

2008-01-24 Thread Julian Davchev
Yep, same user alright..even did chown to be sure... I find it very 
strange too.


About the system:
[EMAIL PROTECTED]:# cat /etc/slackware-version
Slackware 12.0.0   (current this is)

Installed default slackware package of php:
[EMAIL PROTECTED]:# strings `which php` | grep ./configure | sed s#"'"#""#g

./configure  --prefix=/usr --enable-force-cgi-redirect --enable-fastcgi 
--enable-pcntl --enable-readline --enable-sigchild --prefix=/usr 
--sysconfdir=/etc --disable-safe-mode --enable-apc --enable-apc-mmap 
--enable-memory-limit --enable-suhosin --disable-magic-quotes 
--enable-zend-multibyte --enable-mbregex --enable-tokenizer=shared 
--with-config-file-scan-dir=/etc/php --with-config-file-path=/etc/httpd 
--with-mod_charset --with-layout=PHP --enable-sigchild --enable-xml 
--with-libxml-dir=/usr --enable-simplexml --enable-spl --enable-filter 
--disable-debug --with-openssl=shared --with-pcre-regex=/usr 
--with-zlib=shared,/usr --enable-bcmath=shared --with-bz2=shared,/usr 
--enable-calendar=shared --enable-ctype=shared --with-curl=shared 
--with-curlwrappers --enable-dba=shared --with-gdbm=/usr --with-db4=/usr 
--enable-dbase=shared --enable-exif=shared --enable-ftp=shared 
--with-gd=shared --with-jpeg-dir=/usr --with-png-dir=/usr 
--with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr 
--with-t1lib=/usr --enable-gd-native-ttf --enable-gd-jis-conv 
--with-gettext=shared,/usr --with-gmp=shared,/usr --with-iconv=shared 
--with-imap-ssl=/usr --with-imap=/usr/local/lib/c-client 
--with-ldap=shared --enable-mbstring=shared --with-hash 
--with-mhash=shared,/usr --with-mysql=shared,/usr 
--with-mysqli=shared,/usr/bin/mysql_config --enable-pdo=shared 
--with-pdo-mysql=shared,/usr --with-pdo-sqlite=shared 
--with-pspell=shared,/usr --with-mm=/usr --enable-shmop=shared 
--with-snmp=shared,/usr --enable-soap=shared --enable-sockets 
--with-sqlite=shared --enable-sqlite-utf8 --with-regex=php 
--enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx=shared 
--with-xsl=shared,/usr --enable-zip=shared --with-tsrm-pthreads 
--enable-shared=yes --enable-static=no --with-gnu-ld --with-pic 
--build=i486-slackware-linux



[EMAIL PROTECTED]:/storage/www/frameworks# chown jmut.users -R zendframework
[EMAIL PROTECTED]:/storage/www/frameworks/zendframework/tests$ pwd
/storage/www/frameworks/zendframework/tests
[EMAIL PROTECTED]:/storage/www/frameworks/zendframework/tests$ php 
Zend/Cache/AllTests.php

...
30) testCleanModeNotMatchingTags3(Zend_Cache_FileBackendTest)
Zend_Cache_Exception: cache_dir is not writable
/storage/www/frameworks/zendframework/library/Zend/Cache/Backend/File.php:158
/storage/www/frameworks/zendframework/library/Zend/Cache/Backend/File.php:128
/storage/www/frameworks/zendframework/tests/Zend/Cache/FileBackendTest.php:49
/storage/www/frameworks/zendframework/tests/Zend/Cache/AllTests.php:56
/storage/www/frameworks/zendframework/tests/Zend/Cache/AllTests.php:150

FAILURES!
Tests: 121, Errors: 30, Skipped: 4.


Simon Mundy wrote:

Hi Julian

Are you running the tests as the same user as the owner of your 
framework folders? It looks to me that the cache errors are caused 
simply by incorrect permissions.


The other Unit Test failures are certainly worth reporting, though. 
Some of them are so different to the expected value it would be worth 
investigating if the tests require modification or if your install of 
PHP is doing something funky. Is your PHP install from RPM or from a 
manual compile?


==

1) testAssembleZF2301(Zend_Controller_Router_Route_RegexTest)
Failed asserting that two strings are equal.
expected string 
difference  < x>
got string  

2) testGetRegionList(Zend_CurrencyTest)
Failed asserting that  is true.

3) testAtomSample3(Zend_Feed_ImportTest)
Failed asserting that  is true.
Expected Zend_Feed_Exception to be thrown
Failed asserting that  is true.

4) 
testFilterSeparatesCamelCasedWordsWithSpacesByDefault(Zend_Filter_Word_SeparatorToCamelCaseTest)

Failed asserting that two strings are equal.
expected string 
difference  < xx??>
got string  

5) 
testFilterSeparatesCamelCasedWordsWithProvidedSeparator(Zend_Filter_Word_SeparatorToCamelCaseTest)

Failed asserting that two strings are equal.
expected string 
difference  < xx???>
got string  

6) 
testFilterSeparatesCamelCasedWordsWithDashes(Zend_Filter_Word_DashToCamelCaseTest)

Failed asserting that two strings are equal.
expected string 
difference  < xx??>
got string  

7) 
testFilterSeparatesCamelCasedWordsWithDashes(Zend_Filter_Word_UnderscoreToCamelCaseTest)

Failed asserting that two strings are equal.
expected string 
difference  < xx??>
got string  

8) testConvertTo(Zend_Measure_NumberTest)
Failed asserting that two strings are equal.
expected string <25 ⑽>
difference  
got string  <35 ⑽>

9) testCreateDhKey(Zend_OpenIdTest)
expected string <0200>
di

Re: [fw-general] Zend_Controller_Action naming

2008-01-24 Thread Matthew Weier O'Phinney
-- Ralph Schindler <[EMAIL PROTECTED]> wrote
(on Thursday, 24 January 2008, 05:30 PM -0800):
> How about
>
> 
> /**
>  * @DEPRECATED
>  */
> class Zend_Controller_Action extends Zend_Controller_Action_Abstract
> {}
>
>
>
> I have a +1 on making _Abstract a coding standard (as well as _Interface ;) 
>  )

I like the idea, don't get me wrong -- I just don't want to break
people's applications, and I don't want people to get the idea they can
have a concrete instance of Zend_Controller_Action. Maybe for 2.0. :-)

> > In this particular case, Zend_Controller_Action is one of the first
> > classes ever added to the framework, and the '_Abstract'convention was
> > started much later. We considered renaming it at one point, but it would
> > have broken enough existing code by users of the framework that we
> > deemed it not worthwhile (and making Zend_Controller_Action a concrete
> > class extending Zend_Controller_Action_Abstract would have been a bad
> > move as it doesn't follow the naming conventions for concrete controller
> > classes).

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Re: [fw-general] Zend_Controller_Action naming

2008-01-24 Thread Ralph Schindler

How about

I have a +1 on making _Abstract a coding standard (as well as _Interface 
;)  )


-ralph



In this particular case, Zend_Controller_Action is one of the first
classes ever added to the framework, and the '_Abstract'convention was
started much later. We considered renaming it at one point, but it would
have broken enough existing code by users of the framework that we
deemed it not worthwhile (and making Zend_Controller_Action a concrete
class extending Zend_Controller_Action_Abstract would have been a bad
move as it doesn't follow the naming conventions for concrete controller
classes).





Re: [fw-general] are php unit tests from trunk supposed to pass?

2008-01-24 Thread Simon Mundy

Hi Julian

Are you running the tests as the same user as the owner of your  
framework folders? It looks to me that the cache errors are caused  
simply by incorrect permissions.


The other Unit Test failures are certainly worth reporting, though.  
Some of them are so different to the expected value it would be worth  
investigating if the tests require modification or if your install of  
PHP is doing something funky. Is your PHP install from RPM or from a  
manual compile?


==

1) testAssembleZF2301(Zend_Controller_Router_Route_RegexTest)
Failed asserting that two strings are equal.
expected string 
difference  < x>
got string  

2) testGetRegionList(Zend_CurrencyTest)
Failed asserting that  is true.

3) testAtomSample3(Zend_Feed_ImportTest)
Failed asserting that  is true.
Expected Zend_Feed_Exception to be thrown
Failed asserting that  is true.

4)  
testFilterSeparatesCamelCasedWordsWithSpacesByDefault 
(Zend_Filter_Word_SeparatorToCamelCaseTest)

Failed asserting that two strings are equal.
expected string 
difference  < xx??>
got string  

5)  
testFilterSeparatesCamelCasedWordsWithProvidedSeparator 
(Zend_Filter_Word_SeparatorToCamelCaseTest)

Failed asserting that two strings are equal.
expected string 
difference  < xx???>
got string  

6)  
testFilterSeparatesCamelCasedWordsWithDashes 
(Zend_Filter_Word_DashToCamelCaseTest)

Failed asserting that two strings are equal.
expected string 
difference  < xx??>
got string  

7)  
testFilterSeparatesCamelCasedWordsWithDashes 
(Zend_Filter_Word_UnderscoreToCamelCaseTest)

Failed asserting that two strings are equal.
expected string 
difference  < xx??>
got string  

8) testConvertTo(Zend_Measure_NumberTest)
Failed asserting that two strings are equal.
expected string <25 ⑽>
difference  
got string  <35 ⑽>

9) testCreateDhKey(Zend_OpenIdTest)
expected string <0200>
difference  
got string  <2000>

10) testComputeDhSecret(Zend_OpenIdTest)
expected string <0216>
difference  
got string  <2160>

11) testAssociate(Zend_OpenId_ConsumerTest)
expected string  

difference   

got string   
<5ce74a8920ab70792fce82ecfe904b65e1909271dbb53c8646dc88e0cbf518ae>


12) testGetField(Zend_Search_Lucene_Index_SegmentInfoTest)
Failed asserting that  matches expected value .

13) testGetFieldInfos(Zend_Search_Lucene_Index_SegmentInfoTest)
Failed asserting that  matches expected value .

14) testFactoryThrowsOnBadName(Zend_Service_StrikeIron_StrikeIronTest)
Failed asserting that 'Zend_Service_StrikeIron_BadServiceNameHere' could not be loaded: At  
least one error occurred including "Zend/Service/StrikeIron/ 
BadServiceNameHere.php"; see includeErrors property> matches PCRE  
pattern "/not found/i".


15) testIDN(Zend_Validate_HostnameTest)
Failed asserting that  matches expected value  
.


16) testDefaultFilterPath(Zend_ViewTest)
Failed asserting that  is true.



Hi,

[EMAIL PROTECTED]:/storage/www/frameworks/zendframework$ svn up
At revision 7606.

[EMAIL PROTECTED]:/storage/www/frameworks/zendframework/tests$ php -v
PHP 5.2.5 (cli) (built: Nov 10 2007 14:12:24)
...with Xdebug v2.0.2, Copyright (c) 2002-2007, by Derick Rethans



Like these.. using default TestConfiguration.php - see attached  
report.gz from php AllTest.php
This Zend_Cache I see it complains about permissions but don't see  
which dir is looking for...haven't debug.


There are couple of false etc.
Tonight will run full test with DB objects and all.
Regards,


--

Simon Mundy | Director | PEPTOLAB

""" " "" "" "" "" """ " "" " " " "  "" "" "

202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654  
4124

http://www.peptolab.com



Re: [fw-general] Zend_Controller_Action naming

2008-01-24 Thread Matthew Weier O'Phinney
-- PotatoBob <[EMAIL PROTECTED]> wrote
(on Thursday, 24 January 2008, 04:03 PM -0800):
> 
> Just wondering why it's Zend_Controller_Action compared to
> Zend_Controller_Action_Abstract
> 
> ;) Breaking naming conventions should always be specified.

There's actually nothing in the Coding Standards that says an abstract
class needs to end in _Abstract; it's simply a convention that is
*typically* followed. There are several other places in
the framework where abstract classes are not named as such
(Zend_Translate_Adapter is one). Look in the standards if you don't
believe me. :-)

In this particular case, Zend_Controller_Action is one of the first
classes ever added to the framework, and the '_Abstract'convention was
started much later. We considered renaming it at one point, but it would
have broken enough existing code by users of the framework that we
deemed it not worthwhile (and making Zend_Controller_Action a concrete
class extending Zend_Controller_Action_Abstract would have been a bad
move as it doesn't follow the naming conventions for concrete controller
classes).

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


[fw-general] Zend_Controller_Action naming

2008-01-24 Thread PotatoBob

Just wondering why it's Zend_Controller_Action compared to
Zend_Controller_Action_Abstract

;) Breaking naming conventions should always be specified.
-- 
View this message in context: 
http://www.nabble.com/Zend_Controller_Action-naming-tp15078219s16154p15078219.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Lucene limit, count star for pagination

2008-01-24 Thread iffy guy
Some articles say we can implement google like search using lucene.
Searching google for words returns millions of hits with the first page
diasplayed. Does google process millions of hits before paginating (caching)
with scoring/rating? Loading an array of millions of hits like id => db-id
key/value pairs into a var would bring the server down. So I guess there is
this select-count-star like method missing in lucene that returns just the
count of hits (integer) instead of actual hits array? I am finding no
concrete solutions to limit the number of hits to save the server from going
down from processing a large data set. ON the other hand, I find no method
that would return just the count of hits instead of the actual hits.

How do we go about rebuilding indexexs on a high activity site if it takes a
few minutes for each rebuild? Not optimizing indexes will be not optimal  :(


Re: [fw-general] How to get year months using Zend_Date with Zend_Locale support ?

2008-01-24 Thread Thomas Weidner

It's all there...

$locale = new Zend_Locale();
$monthlist = $locale->getTranslationList('months', 'es_ES');

But you will have to wait some days until 1.5RC is released...

Greetings
Thomas Weidner, I18N Team Leader
http://www.thomasweidner.com

- Original Message - 
From: "Juan Felipe Alavarez Saldarriaga" <[EMAIL PROTECTED]>

To: "fw-general" 
Sent: Thursday, January 24, 2008 5:52 PM
Subject: [fw-general] How to get year months using Zend_Date with 
Zend_Locale support ?




Hey :).

I'm traying to get all the year months using Zend_Date and then translate 
those names with Zend_Locale, I have this:


for ( $intMonthCounter = 1; $intMonthCounter <= 12; $intMonthCounter++ )
{
   $objDate = new Zend_Date( $intMonthNumber, Zend_Date::MONTH, 
$this->objLocale );

}

So how to get the month name, like 'December', 'November' but using 
Zend_Locale too ? I mean, is possible to get a month name using 
Zend_Locale for the current Locale set, like es_ES ?


Thx for any help. 




Re: [fw-general] Zend_Filter_StripNewlines is ready for review

2008-01-24 Thread Martin Hujer


Link is:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Filter_StripNewlines+-+Martin+Hujer

:)
-- 
View this message in context: 
http://www.nabble.com/Zend_Filter_StripNewlines-is-ready-for-review-tp15066345s16154p15070017.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] How to get year months using Zend_Date with Zend_Locale support ?

2008-01-24 Thread Juan Felipe Alavarez Saldarriaga
Hey :).

I'm traying to get all the year months using Zend_Date and then translate those 
names with Zend_Locale, I have this:

for ( $intMonthCounter = 1; $intMonthCounter <= 12; $intMonthCounter++ )
{
$objDate = new Zend_Date( $intMonthNumber, Zend_Date::MONTH, 
$this->objLocale );
}

So how to get the month name, like 'December', 'November' but using Zend_Locale 
too ? I mean, is possible to get a month name using Zend_Locale for the current 
Locale set, like es_ES ?

Thx for any help.


[fw-general] Zend_Filter_StripNewlines is ready for review

2008-01-24 Thread Martin Hujer

Hello,
I've created a proposal to fix ZF-2427. 

It just strips out newline characters, but it can be useful.

I'd be happy to hear any comments on it.


Sincerely

Martin Hujer 
-- 
View this message in context: 
http://www.nabble.com/Zend_Filter_StripNewlines-is-ready-for-review-tp15066345s16154p15066345.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Re: Zend_Db Changes in 1.5PR

2008-01-24 Thread Darby Felton
Hi Eric,

Wil is working on the 1.5.0 Preview Release release notes, which likely
should be committed to SVN today or tomorrow (PST). This should have
much of the information you seek, but in the meantime, please feel free
to scour the JIRA issue tracker. :)

http://framework.zend.com/issues/browse/ZF

Best regards,
Darby

Eric Coleman wrote:
> Yeah, so my sub-classes are to blame...  I really apologize for not
> investigating further before bitching.
> 
> Is there a detailed list of changes available yet for Zend_Db and
> related classes, or do I need to hold tight a little while longer...
> 
> /me hides
> 
> On Jan 24, 2008, at 7:03 AM, Eric Coleman wrote:
> 
>> Seems all kinds of mistakes :/
>>
>> Catchable fatal error: Argument 1 passed to
>> Zend_Db_Table_Abstract::_order() must be an instance of
>> Zend_Db_Table_Select, instance of Zend_Db_Select given
>>
>> PHP Catchable fatal error:  Argument 1 passed to
>> Zend_Db_Table_Abstract::_fetch() must be an instance of
>> Zend_Db_Table_Select, instance of Zend_Db_Select given
>>
>> Also, it seems to be generating messed up queries... Example:
>>
>>
>> $table = new Zend_Db_Table();
>> $table->fetchAll(null, array('lastName', 'firstName'));
>>
>> results in:
>>
>> SELECT
>> 
>> ORDER BY
>> `lastName` ASC,
>> `firstName` ASC
>>
>> Regards,
>> Eric
> 
> 


[fw-general] Re: Zend_Db Changes in 1.5PR

2008-01-24 Thread Eric Coleman
Yeah, so my sub-classes are to blame...  I really apologize for not  
investigating further before bitching.


Is there a detailed list of changes available yet for Zend_Db and  
related classes, or do I need to hold tight a little while longer...


/me hides

On Jan 24, 2008, at 7:03 AM, Eric Coleman wrote:


Seems all kinds of mistakes :/

Catchable fatal error: Argument 1 passed to  
Zend_Db_Table_Abstract::_order() must be an instance of  
Zend_Db_Table_Select, instance of Zend_Db_Select given


PHP Catchable fatal error:  Argument 1 passed to  
Zend_Db_Table_Abstract::_fetch() must be an instance of  
Zend_Db_Table_Select, instance of Zend_Db_Select given


Also, it seems to be generating messed up queries... Example:


$table = new Zend_Db_Table();
$table->fetchAll(null, array('lastName', 'firstName'));

results in:

SELECT

ORDER BY
`lastName` ASC,
`firstName` ASC

Regards,
Eric




Re: [fw-general] are php unit tests from trunk supposed to pass?

2008-01-24 Thread Julian Davchev

Hi,

[EMAIL PROTECTED]:/storage/www/frameworks/zendframework$ svn up
At revision 7606.

[EMAIL PROTECTED]:/storage/www/frameworks/zendframework/tests$ php -v
PHP 5.2.5 (cli) (built: Nov 10 2007 14:12:24)
...with Xdebug v2.0.2, Copyright (c) 2002-2007, by Derick Rethans



Like these.. using default TestConfiguration.php - see attached 
report.gz from php AllTest.php
This Zend_Cache I see it complains about permissions but don't see which 
dir is looking for...haven't debug.


There are couple of false etc.
Tonight will run full test with DB objects and all.
Regards,


Simon Mundy wrote:

Hi Julian

Definitely a JIRA issue - however you may wish to also contact the 
Component Lead for the tests that are failing so that you can give 
them a heads-up and see if there's something trivial that may be 
causing it.


Which errors are you getting?

Cheers


Hi,
Are unit tests from trunk always supposed to pass?
Cause as I get from manual they are.
Mine definitely have errors and want to report somehow.
Should I create issues on jira for stuff like that?
Thanks.


--

Simon Mundy | Director | PEPTOLAB

""" " "" "" "" "" """ " "" " " " "  "" "" "

202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124
http://www.peptolab.com





report.gz
Description: application/gzip


[fw-general] Zend_Db Changes in 1.5PR

2008-01-24 Thread Eric Coleman

Seems all kinds of mistakes :/

Catchable fatal error: Argument 1 passed to  
Zend_Db_Table_Abstract::_order() must be an instance of  
Zend_Db_Table_Select, instance of Zend_Db_Select given


PHP Catchable fatal error:  Argument 1 passed to  
Zend_Db_Table_Abstract::_fetch() must be an instance of  
Zend_Db_Table_Select, instance of Zend_Db_Select given


Also, it seems to be generating messed up queries... Example:


$table = new Zend_Db_Table();
$table->fetchAll(null, array('lastName', 'firstName'));

results in:

SELECT

ORDER BY
`lastName` ASC,
`firstName` ASC

Regards,
Eric


Re: [fw-general] "rails migration like" in ZF ? Or how do you sync dev. db->production db ?

2008-01-24 Thread Simone Carletti
Actually no migration system is part of Zend Framework.
There's just a proposal
http://framework.zend.com/wiki/display/ZFPROP/Zend_Db_Schema_Manager+-+Rob+Allen


Simone

On Jan 24, 2008 1:47 AM, Nicolae Namolovan <[EMAIL PROTECTED]> wrote:

> Hi dear list,
>
> Is there anything similar to rails migration file in Zend Framework ?
>
> I'm creating now a new table on mine development database, and after I
> want to migrate this to the production one, how to achieve this in a
> nice way ?
>
> Now I'm doing.. into the mysql console, show create table `table name`;
> Copy&paste to mysql console on production..
> To change anything alter table..
> Horrible..
>
> How do you do this in a "nice way" ?
>
> --
> Sincerely,
> Nicolae Namolovan.
>


[fw-general] fyi: yet another one php5 toolkit

2008-01-24 Thread peter fiksman

Hello all,

I have released my own PHP toolkit under the BSD license - maybe some of
about 200 classes could be (re)used for the Zend Framework? There are no
_special_ concepts, just generic component implementation.

I would like to contribute but due to time lack all that I can do is just to
publish the sources making it available for everybody. Maybe there will be a
discussion resulting in some concrete proposals which classes are of real
interest for the ZF.

If not, I hope that there will be a couple of people those would find this
toolkit useful. Anyway, thank you for your attention.

Here is some short API info and download link (on Sourceforge.net) :
http://blog.pfgear.net

best regards
Peter Fiksman


pf-webservices
Grantham-Allee 20
53757 Sankt Augustin

Tel.:  +49 (0) 2241 397 2135
Fax:   +49 (0) 2241 397 2139
Mobil: +49 (0) 177  976 3257

Email: [EMAIL PROTECTED]
Web: http://pf-webservices.de
Ust-Id: DE223139117



Re: [fw-general] are php unit tests from trunk supposed to pass?

2008-01-24 Thread Simon Mundy

Hi Julian

Definitely a JIRA issue - however you may wish to also contact the  
Component Lead for the tests that are failing so that you can give  
them a heads-up and see if there's something trivial that may be  
causing it.


Which errors are you getting?

Cheers


Hi,
Are unit tests from trunk always supposed to pass?
Cause as I get from manual they are.
Mine definitely have errors and want to report somehow.
Should I create issues on jira for stuff like that?
Thanks.


--

Simon Mundy | Director | PEPTOLAB

""" " "" "" "" "" """ " "" " " " "  "" "" "

202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654  
4124

http://www.peptolab.com



[fw-general] are php unit tests from trunk supposed to pass?

2008-01-24 Thread Julian Davchev

Hi,
Are unit tests from trunk always supposed to pass?
Cause as I get from manual they are.
Mine definitely have errors and want to report somehow.
Should I create issues on jira for stuff like that?
Thanks.