This isn't a bug. All those strings evaluate to 0.
You should use a sort() function which is suitable.
At 02:48 PM 7/27/2004 -0500, John Coggeshall wrote:
Consider the following:
?php $a = array('a', 'b', 'c', 'a'=0, 'b'=1, 'c'=2);
sort($a);
print_r($a);
?
This produces a bogus output:
Hi,
i saw that 07/21/04, gd 2.0.28 has been released with gif support enabled
again (reading and creating). Since the beggining of the month, the Unisys
licence for Gif usage is not necessary anymore.
So maybe this question has already been asked, but I didn't find it (sorry),
will next version
Hi all,
First allow me to thank you about PHP5 release. Great job !
My question is about the PHP/Java extension. Last year it seems to me
that Sun and Zend have signed a partnership about creating a PHP Java
extension for PHP5.
I heard at the PHP Quebec event that it was in beta release but i
Hi All,
?php
class Foo {
const HELLO = con\n;
function memberfunc() {
echo HELLO; //does not work
echo Foo::HELLO; //works
}
}
$obj = new Foo();
$obj-memberfunc();
?
With a error_reporting=2047 I get
Notice: Use of undefined constant HELLO - assumed 'HELLO' in
Hi Kamesh,
Try replacing Foo::HELLO with self::HELLO. This should work.
(this is documented, the manual will reflect it in the next build)
didou
Kamesh Jayachandran wrote:
Hi All,
?php
class Foo {
const HELLO = con\n;
function memberfunc() {
echo HELLO; //does not work
echo
You'd probably better ask this on the development list (cc-ed).
Goba
Jakub Vrana írta:
I'm not a formal languages expert but I wonder how can unary operator be
associative. It also seems that ++ and -- have higher priority than the
rest of unary operators listed on one line. I also don't
Hello internals,
in the bug system there is an entry # 29421:
(http://bugs.php.net/bug.php?id=29421)
In short. in_array() and array_search() return the first
boolean(true) when the user looks for an element that
evaluates to true according to PHP's type juggling.
The opposite is also valid and
http://cvs.php.net/co.php/php-src/README.WIN32-BUILD-SYSTEM
--Wez.
On Wed, 28 Jul 2004 23:37:24 +0200, David Chatel [EMAIL PROTECTED] wrote:
I tried to compile PHP-5.0.0 and the lastest 4.x.x from php.net download
page, but it seems i need VC++6.
Any distribution for VC++7 ?
--
PHP
What configuration options should I enable in order to build a debug version
?
with --enable-debug only i got a 0x2 error. unable to open include file
libxml/parser.h
I checked the file doesnt exists.
Wez Furlong [EMAIL PROTECTED] a écrit dans le message de
news:[EMAIL PROTECTED]
I wrote up a patch for implementing gotos in php scripts a couple months ago
as an exercise in working with the Zend engine. I put it aside assuming
noone would actually want it, but Wez and Ilia convinced me to post it for
consideration:
Description:
http://pecl.org
Patch:
On Wed, 2004-07-28 at 22:12, Sara Golemon wrote:
I wrote up a patch for implementing gotos in php scripts a couple months ago
as an exercise in working with the Zend engine. I put it aside assuming
noone would actually want it, but Wez and Ilia convinced me to post it for
consideration:
On Thursday 29 July 2004 04:12, Sara Golemon wrote:
I wrote up a patch for implementing gotos in php scripts a couple months
ago as an exercise in working with the Zend engine. I put it aside
assuming noone would actually want it, but Wez and Ilia convinced me to
post it for consideration:
The patch looks ok to me.
One issue to be worked out is to prevent goto from jumping out of a
try..catch block.
goto is that nice tool that everyone is brainwashed to believe is
evil, instead of simply being taught how to use it properly.
+10 ;)
--Wez.
On Wed, 28 Jul 2004 19:12:40 -0700, Sara
Goto is an extremely useful for parsers and makes life much easier when
dealing with complex error handling situations.
+1
Ilia
On July 28, 2004 10:12 pm, Sara Golemon wrote:
I wrote up a patch for implementing gotos in php scripts a couple months
ago as an exercise in working with the Zend
The patch looks ok to me.
One issue to be worked out is to prevent goto from jumping out of a
try..catch block.
After you mentioned that in IRC I tried out several test cases each of which
behaved well, but I of course could have missed some possible combination...
Btw, goto labels are
I'd like to have these merged to 5.0.1 if there are no objections.
--Wez.
On Thu, 29 Jul 2004 02:59:44 -, Wez Furlong [EMAIL PROTECTED] wrote:
wez Wed Jul 28 22:59:44 2004 EDT
Added files:
/php-src/win32 globals.c php_win32_globals.h
Modified files:
Is there prefered/suggested method on debugging memory leaks?
For example:
$i = 100;
while($i-- ) {
list($foo['a']) = array('bar');
}
Results with:
Zend/zend_execute.c(3383) : Freeing 0x0840E1CC (4 bytes),
script=t.php
Zend/zend_variables.c(137) : Actual location (location was
17 matches
Mail list logo