# |
Oct 22nd 2009, 07:56 |
Ceeram |
the other test without the $offset param in mb_strrpos(0 just pass |
# |
Oct 22nd 2009, 07:56 |
markstory |
probably, so the test needs to call Multibyte's functions instead of PHP's |
# |
Oct 22nd 2009, 07:55 |
Ceeram |
not tests when the mb_strrpos is called directly woth $offset param |
# |
Oct 22nd 2009, 07:55 |
Ceeram |
the Multibyte tests all pass |
# |
Oct 22nd 2009, 07:55 |
Ceeram |
i think the test was first written with php function and then copy pasted and changed to cake MultiByte class but forgot to take out tests with just mb_strrpos |
# |
Oct 22nd 2009, 07:54 |
Ceeram |
look at the file, you'll find the cake class test methods abiove that |
# |
Oct 22nd 2009, 07:54 |
markstory |
mb_strrpos() gets defined by multibyte if it doesn't exist. |
# |
Oct 22nd 2009, 07:53 |
markstory |
so why remove the tests, why not change them to use Multibyte::strrpos? |
# |
Oct 22nd 2009, 07:53 |
Ceeram |
$offset parameter was introduced in 5.2.0 |
# |
Oct 22nd 2009, 07:53 |
Ceeram |
http://php.net/manual/en/function.mb-strrpos.php |
# |
Oct 22nd 2009, 07:53 |
Ceeram |
not Multibyte::strrpos() |
# |
Oct 22nd 2009, 07:53 |
Ceeram |
is mb_strrpos |
# |
Oct 22nd 2009, 07:52 |
Ceeram |
no look at the code it tests the php function not cakes |
# |
Oct 22nd 2009, 07:52 |
markstory |
is there for me. |
# |
Oct 22nd 2009, 07:52 |
markstory |
Multibyte::strrpos() ? |
# |
Oct 22nd 2009, 07:51 |
Ceeram |
look more carefully |
# |
Oct 22nd 2009, 07:51 |
Ceeram |
the mehotds arent within Multibyte class |
# |
Oct 22nd 2009, 07:51 |
Ceeram |
markstory: about this one: http://code.cakephp.org/tickets/view/194#c483 |
# |
Oct 22nd 2009, 07:51 |
markstory |
I think that's because the paths get changed around. |
# |
Oct 22nd 2009, 07:49 |
Ceeram |
also there is a warning on that this both before and after the fix: Warning (2): array_filter() [function.array-filter]: The first argument should be an array [CORE/cake/libs/configure.php, line 708] |
# |
Oct 22nd 2009, 07:49 |
Ceeram |
well its explains why they fail with me and not when you run them if this is caused by OS |
# |
Oct 22nd 2009, 07:48 |
Ceeram |
http://code.cakephp.org/source/cake/basics.php#673 |
# |
Oct 22nd 2009, 07:47 |
Ceeram |
np |
# |
Oct 22nd 2009, 07:47 |
markstory |
oh, sorry its still early. |
# |
Oct 22nd 2009, 07:47 |
Ceeram |
it gave back 4 instead of 3 |
# |
Oct 22nd 2009, 07:47 |
Ceeram |
thats why i removed them from the tests |
# |
Oct 22nd 2009, 07:47 |
markstory |
they change on windows. |
# |
Oct 22nd 2009, 07:47 |
markstory |
Ceeram: you can't use the constants. |
# |
Oct 22nd 2009, 07:47 |
dogmatic69 |
demet8_: it *must* |
# |
Oct 22nd 2009, 07:46 |
markstory |
Ceeram: wha? |
# |
Oct 22nd 2009, 07:46 |
markstory |
the framework is php4 compatible, but your code doesn't have to be. |
# |
Oct 22nd 2009, 07:46 |
Ceeram |
markstory: yes it does and basics.php states that numeric value whould be used instead of LC_MONETARY |
# |
Oct 22nd 2009, 07:46 |
markstory |
yes |
# |
Oct 22nd 2009, 07:46 |
demet8_ |
hey all im new to cake and I have a question. Can OOP (php 5) code be written in cake framework? |
# |
Oct 22nd 2009, 07:43 |
markstory |
I don't get any fails on php 5.2.11 or 4.4.9 |
# |
Oct 22nd 2009, 07:43 |
markstory |
Ceeram: the i18n test fails for you? |
# |
Oct 22nd 2009, 07:41 |
Mike_MnD |
aham ok tnx rchavik |
# |
Oct 22nd 2009, 07:39 |
dogmatic69 |
!bin |
# |
Oct 22nd 2009, 07:38 |
rchavik |
for model Content |
# |
Oct 22nd 2009, 07:38 |
rchavik |
Mike_MnD: that was when i did a search/filter for "Linux" in column "Title" |
# |
Oct 22nd 2009, 07:37 |
rchavik |
Mike_MnD: i'm trying to refresh my memory here.. but that is the contents of $this->Filter->filterOptions |