Yes, I think that for strings we should limit it to ranges
like $foo{4..6}, and it would be neat if we for arrays could
do $foo[4..6]. : might be just as well as ... It is more
intuitive with .. I think, but I also kind of like having a
single character.
4:6 is more of a soccer result than
As it were Andi's last words, is it the finial decison now just to
implement $foo{x} to retrieve a single char?
I'm asking this again, because it will be irreversible because it is not
compatible with substr($foo,x) == $foo{x}!!!
And as I still do not agree that substr($foo,4,6) should be
I still think that people who need more complicated stuff can use
substr(). But I know many don't agree with me so I prefer to wait a
while with the discussion until we start advancing a bit in the Engine 2
nah, you know waiting turns developers into killer-machines ;)
something more to
I think we should not allow this, use substr() if you need more
functionality. Stick to very simple things with the {} stuff.
ah hell, I think Andi not even thought at using substr() within {}.
then my argumentation is something like void ;)
these examples were meant perlish and will do harm
are evil, who knows,
but community is community and the behaviour of group members should be
representative.
andré
ps. don't try to find a bias for one of both parties, I tried to remain
as much neutral as possible.
--
· André Langhorstt: +49 331 5811560 ·
· [EMAIL PROTECTED
--
· André Langhorstt: +49 331 5811560 ·
· [EMAIL PROTECTED] m: +49 173 9558736 ·
* PHP Quality Assurance http://qa.php.net *
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
... SKIP ...
OO Bug Test (Bug #7515) (029.phpt) ... failed
... SKIP ...
ignore it
andr
--
Andr Langhorstt: +49 331 5811560
[EMAIL PROTECTED] m: +49 173 9558736
* PHP Quality Assurance http://qa.php.net *
--
PHP Development Mailing
breadsticks to be precise;-)
some kind of hobby or mental stimulation? ;)
andr
--
Andr Langhorstt: +49 331 5811560
[EMAIL PROTECTED] m: +49 173 9558736
* PHP Quality Assurance http://qa.php.net *
--
PHP Development Mailing List http://www.php.net/
To
bug pack time ;)
andr
--
Andr Langhorstt: +49 331 5811560
[EMAIL PROTECTED] m: +49 173 9558736
* PHP Quality Assurance http://qa.php.net *
snif,
finally 1 bugs :(
Derick Rethans
-
PHP:
I would expect different results from dirname() on win32 and linux, I am
pretty stuck with it, perhaps there is a RFC for this? should this
function act differently on win32+linux what would make code unportable
but working correctly?
dirname() seems to be buggy, at least on win32, these are
Dan Kalowsky wrote:
Follow up on the earlier reporting of having memory issues to 4.0.5RC1.
most probably not related, me too gets a crash running the standard
tests on win32, I do not have exactly located the crash, I currently
short on time
andr
--
Andr Langhorstt: +49 331
Here it is in detail:
http://www.php.net/bugs.php?id=8937
http://www.php.net/bugs.php?id=8972
The fact that people think having found a bug doesn't justify the introduction
of a confusing, meaningless function IMHO
after reading stas' reference docs you should have understood that
unset()
thus is_reference() never makes sense, you simply cannot spot the reference
note:
what *could* make sense for debugging is a function like
are_identical($foo,$foo2) which compares if they both belong to the same
zval_struct (you could even write this one is userland, by saving the
original
Hi,
Mozilla currently is in its QA phase for 0.8.1 and could benefit from
the variety of systems and OSses php developers run, I guess.
Anyone who already uses mozilla or wants to help an open-source project
in a (close-to-)final stage, should check out one or more builds (daily
snapshots)
Joey Smith wrote:
Are we going to have a second RC?
I was just about to ask the same, I did not thoroughly monitor, but I
guess zeev did not commit the ob fixes yet
andr
--
Andr Langhorstt: +49 331 5811560
[EMAIL PROTECTED] m: +49 173 9558736
* PHP Quality
This code is not related - it'll crash w/o it...
So it's not a Zend bug, it's a bug in the new output buffering code.
you're right perhaps, I just found it interesting that it (ob code) did
not crash setting no strange reference and made assumptions memory to be
corrupted
andr
--
Andr
Stanislav Malyshev wrote:
AL $foobar-rfoo=$a;
AL $foobar-r2foo=$foobar-rfoo;
AL $foobar-rfoo=4;
AL
AL What are we assigning 4 here to?
To all three of them, which are all reference-bound.
hm, I got something very wrong - the var_dump() patch I am working on
fooled me and displayed some
Hi have found an interesting behaviour, watch below...
1)
$foobar-rfoo=$a;
$foobar-r2foo=$foobar-rfoo;
$foobar-rfoo=4;
What are we assigning 4 here to? The first question is, should we allow
this? I think no, references to non-existing variables should be
disallowed (although Zend allows a
Joey Smith wrote:
Can I get what you've been using to test chunked buffered output?
sure you can, I just found out that chunked output *seems* to work for
values from 2 to [?], it puts something out, I do not know how if it
really was chunked...
crash:
ob_start('strlen',123); // crashes
Read: You can now efficiently have your outgoing PHP/HTTP traffic
compressed with good compression ratios without sacrificing memory.
Comments extremely welcome - and if people can also test it and let me
know whether it works for them, it'd be great.
Taking your example...
$x=str_repeat('t',6).'BR';
function strlens($string){
//return str_replace("\n",'br',$string);
sleep(3);
return $string;
}
ob_start('strlens',128);
echo str_repeat($x,50);
ob_end_flush();
in addition this code crashes ;)
dealing with these amounts of crashes
Hi Zeev,
chunked output buffering seems to work on Linux. Unfortunately several
things do not work (anymore) on win32 (tested CGI):
1)
Using ob_start([internal_function]) eg. strlen(),nl2br()etc. yield in
no-output, while using a simple user-land wrapper works.
2) this crashes:
function
Hi,
maybe you have more success patching this one...
andr
?php
function tryy() {}
register_tick_function('tryy');
declare (ticks=1) { ; }
?
=== Stack Dump of Process Apache.exe:2240; Thread 2080
php_tick_iterator( 0x01052EC8, 0x0138F9B0 ), php_ticks.c:64, 0xb675
Jani Taskinen wrote:
Uhm..I have always closed the duplicates after the original (which they
refer to) was closed. Any opinions about this? As the current bug system
doesn't have any support for 'multiple' closing, I think it's better to
close bugs after they are fixed, be it a duplicate or
There are no static functions in PHP. This syntax is used to call a
method of the parent. It can be used to call other methods and thus have
parent::foo();
If you remember, it has been implemented *after*
[classname]::[functionname]() ...
the wrong $this but I wouldn't document it.
Is that bad? Could come in useful, especially when calling parent
classes.
wow, what a quick response :)
could you elaborate (I guess you do not have parent:: in your mind
writing from parent classes)?
andr
--
Andr Langhorstt: +49 331 5811560
[EMAIL PROTECTED] m:
I don't understand the question. Can you rephrase?
I simply wanted to know what you had in mind, where could it be useful...
andr
--
Andr Langhorstt: +49 331 5811560
[EMAIL PROTECTED] m: +49 173 9558736
* PHP Quality Assurance http://qa.php.net *
--
PHP Development
I still don't understand what the problem is? What should be documented
is the right way to use these calls.
problem 1 : how do I call the "::" operator and how do I call what it
does if it is no static call.
problem 2 : the "bug" with incorrect $this I mentioned, it is at least
Right, and they weren't static functions either (this feature was
designed for calling parent/grandparent/etc methods). The way it's
designed is completely intentional.
ok. this makes sense now :)
andr
--
Andr Langhorstt: +49 331 5811560
[EMAIL PROTECTED] m: +49 173
A more clear design IMHO, quite fine BUT
something still is very crappy, the "news" page itself.
Our News are somewhat unordered, I think it should be divided up into
some parts that always stay the same (eg. so, how much does it cost,
usage stats) and into "release news (eg. php4.0.5
Can you too look again? At least look at http://ca.php.net (which I
can update instantly).
minor issues:
1) with mozilla I get horizontal scrollbar with 800x600, it should be no
problem to eleminate this one
2) usage stats should be in the navigation (downloads | documentation |
support
Encountered 100 spanned cmd.exe + php.exe using win32 CGI, this does
not happen using apachemod, my task manager was open by accident,
otherwise I would not have noticed this...
?php
popen('php -v','r');
?
andr
--
Andr Langhorstt: +49 331 5811560
[EMAIL PROTECTED] m:
Is there any reason to retard the 4.0.5 Release Candidate 1 ?
We should branch anytime soon.
Are there any outstanding commits (zeev mentioned zend sos guys want to
commit sth)?
If not we could start this weekend, maybe at the beginning of the next
week...? Please shout if you still have open
a)
This code crashes with current releases on phpapache+win32 (not cgi),
linux untested...
?php
function test($foo) {}
register_tick_function('test',$foo);
declare(ticks=3)
{ ;; }
?
b)
I think I am still getting something wrong... ticks are _not_ for
simulating "background processing"
Overall I think this is very good. I have a few problems with it (all
prefixed with a large IMHO :)...
agreeing in anything sterling mentioned, except and in addition this:
GETTEXT
bindtextdomain
dcgettext
dgettext
gettext
textdomain
is there any reason not to change them?
IISFUNC
Brandon Feldhahn wrote:
how do i make somthing with my database that knows it the username
entered is already a name in use?
please do not cross-post!!!
it is sufficient to post it to _one_ mailing list (php-general)
thanks
--
Andr Langhorstt: +49 331 5811560
[EMAIL PROTECTED]
Just noticed that (PEAR actsdocumentation tells) as if set_object has
to be called with pass-by-reference for the 2nd parameter,
either documentaiton+PEAR or php-source is out of date...?
andr
--
Andr Langhorstt: +49 331 5811560
[EMAIL PROTECTED] m: +49 173 9558736
* PHP
That's what I recalled too. I don't think that this can work today, so
if this check got lost along the way, it should probably be restored.
hehe, the PHP Mime type check is still there, but why do we shut down all buffers?
what did it intentionally fix? I still do not get it...
andr
--
Jeffrey Lin wrote:
Hey, there:
We just added some patch to php CVS specifically for
our database driver - DBMaker.
Please file a bug (http://bugs.php.net) and copy your patch into it to
ensure that it does not get overlooked.
Thanks.
--
Andr Langhorstt: +49 331 5811560
How about using array_keys($array, $value) to find the key?
obviously it is cheaper to let in_array return it and it is more php 4
stylish, we have booleans, why not use them?
if ($key=in_array()) do_someting_with_key($key);
is less expensive than
if (in_array()) {
Could be done. The way I'd do it is have one php_in_array() C function
that gets parameters passed through from in_array() and array_find() as
well as a flag indicating whether to just return true/false or the
actual key.
what about not touching the internal pointer? there in_array would
I tried (and failed) to figure out why virtual() closes any output buffers,
I think this is not very gentle, could anybody enlighten me?
andr
--
Andr Langhorstt: +49 331 5811560
[EMAIL PROTECTED] m: +49 173 9558736
* PHP Quality Assurance http://qa.php.net *
ID: 8536
I want to fix chunked output buffering for 4.0.5 (it doesn't work right
at all in 4.0.4). I think it'll take me about 10 days (I'll probably
not have time to work on it this week).
glad to hear this, I think this is *definitely* worth waiting... :)
andr
--
Andr Langhorstt: +49
This will break backwards compatibility, and I am not really in favor of
adding a new param to get_meta_tags in order to include this new
functionality, that will just obfuscate the code more than it needs to be.
I think we should just change one implementation, to another, better one. I
Harald Radi wrote:
http://dd.cron.ru/dbg/ great !
what about modifiying the php license to force all people to tell us
about any interesting project ;)
andr
--
Andr Langhorstt: +49 571 3201801
[EMAIL PROTECTED]m: +49 173 9558736
PHP Quality Assurance http://qa.php.net
Couldn't some just go and kill those spammers?
Is it possible to set rules (similar to those my mozilla takes) for the
list?
class a candidate would be 'SEEN'+'NATIONAL'+'TV' and the like
andr
Original Message
Subject: [PHP-PEAR] Dear Friends Future Millionaire:
Date: Tue,
why didn't you make it a Feature Request then? But I suppose you tried,
and wasn't be able to do that. Jani, is this a bug in the bugsystem?
I did! it was just put into a rhetorical question ;)
andr
--
Andr Langhorstt: +49 571 3201801
[EMAIL PROTECTED]m: +49 173 9558736
PHP
://marc.theaimsgroup.com/?l=php-devm=97370854024082w=2)
with mysql_options()?
regards,
andré
--
· André Langhorst · t: +49 571 3201801 ·
· [EMAIL PROTECTED] · m: +49 173 9558736 ·
· PHP Quality Assurance · http://qa.php.net ·
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail
[EMAIL PROTECTED] wrote:
This looks like it'd do what I need it to, but the docs are rather sketchy
on the parameters.
Can anyone clarify the params?
Usage seems pretty straightforward.
I remember having used this some day:
to retrieve
I don't see an odbc_columns() method in PHP...hmm...
It is s in my current CVS (source) and it was there ca. 4-5 months ago
and it is in my documentation... that should be enough evidence to
convince a tribunal I guess, although I did not actually prove it by try :)
andr
--
Andr
50 matches
Mail list logo