On Wed, 2005-10-26 at 18:22 +0100, Holografix wrote:
> With PHP 5.1 knocking at the door, I guess many people would like to take
> advantage og mysql 5 new features.
I use PDO with MySQL 5 every day. What's the problem?
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAI
true into false consitutes a rather severe BC break :).
> >
> How about ||| and |||= ?
>
How about ~ and ~= ? Shorter to type.
I know that in logic it can mean NOT, but I think nearly all PHP
programmers would know that ! serves that purpose in PHP.
--
Jasper Bryant-Greene
Genera
g an unset variable. It needs to be a
language construct.
FWIW, I like the $a ?? $b and $a ??= $b idea.
--
Jasper Bryant-Greene
General Manager
Album Limited
e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
b: http://jbg.name/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579
their argument by reference without any actual need to.
I think there was a post by Rasmus that said this behaviour would change
in the near future, which I assume is the change you quote, but without
searching the archives I can't be more specific.
--
Jasper Bryant-Greene
General Manager
Peter Brodersen wrote:
On Thu, 10 Nov 2005 14:08:29 -0500, in php.internals [EMAIL PROTECTED]
(Ilia Alshanetsky) wrote:
I don't think it would reduce the number of attacks turning the
version information off. But it would be more cumbersome to help
people with php issues as the php version is n
Marcus Boerger wrote:
agreed, also we are doing very much work on security. Thus new and regular
updated systems shouldn#t have a problem with exposing this. And we cannot
do anything for unmaintained systems anyway. Therefore i think we or any
user should not be ashamed or fear having php bein
to type, and doesn't look like a smiley (like :> etc).
--
Jasper Bryant-Greene
General Manager
Album Limited
+64 21 708 334
[EMAIL PROTECTED]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Joseph Crawford wrote:
i vote against ! and \ ! i would have to say <- or <: would be the one's i
would be most comfortable and less confused using.
Although I did originally like <-, it's impossible because it already
has meaning, as "less than the negative value
sion in the PHP source distribution.
This is all very new to me and I've tried looking at php.net but wasn't
able to locate any instructions for submission so I'm writing to the
dev list for further assistance.
So, where do I go from here?
How long is the usual submission p
Joseph Crawford wrote:
works here too, but i am confused as to why this was sent to internals ;)
Would you mind quoting what you are responding to, in order to prevent
the rest of us being utterly confused as to what on earth you are
talking about?
--
Jasper Bryant-Greene
General Manager
en suggested are:
- authenticate a user before accepting a download
- stream the download through an encryption algorithm.
What does this have to do with the above? And what's stopping you doing
either of these already? Many people do every day...
--
Jasper Bryant-Greene
General Manager
Album Li
Robert Deaton wrote:
On 1/29/06, James Crane <[EMAIL PROTECTED]> wrote:
Then why don't we have these:
$i = integer(5);
$f = float(4.5);
$s = string("foo");
Perhaps because any sane person will know without reading a manual,
that " delimits a string, a number without a decimal is an integer,
Michael Wallner wrote:
I'd like to suggest that we revisit the output control (output
buffering) code base.
On a semi-related note, I'd like to see the docs mention that print_r
and var_export (with the second parameter set to TRUE), and
debug_print_backtrace, internally use the output buffer
You want the php-general mailing list. This list is for discussing
development of the PHP language and runtime...
Jasper
Bruce wrote:
I am having trouble porting some code originally written in Borland Delphi
to PHP. The Delphi code expects certain behavior on integer overflows that I
can only
The PHP_Compat code is faulty too -- the S in variables_order etc.
refers to _SERVER, not to _SESSION.
Jasper
Arpad Ray wrote:
"Stefan Esser" <[EMAIL PROTECTED]> wrote:
sesser Wed Mar 22 08:21:01 2006 UTC
Modified files:
/php-src README.UPDATING_TO_PHP6
Log:
ompile it with -fomg-really-fast-optimisation-thing) file a bug report!
--
Jasper Bryant-Greene
General Manager
Album Limited
http://www.album.co.nz/ 0800 4 ALBUM
[EMAIL PROTECTED] 021 708 334
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Marco wrote:
The same way anything is encouraged in this programming world. Write
killer apps that only work in PHP 5+. This is a thread that will be
more at home on php-general@lists.php.net
How can you write killer apps in php5 when less than 5% of low costs
hosting providers support it? I
D. Dante Lorenso wrote:
Rasmus Lerdorf wrote:
Not sure what you guys are talking about. ?: is on the roadmap.
-Rasmus
Ok. That has some signs of hope. What is ?: exactly, though.
Rasmus is referring to making the middle operand in the ternary operator
optional, I believe.
Jasper
--
PH
Jared Williams wrote:
>
> Interesting logic break too...
>
> $foo = new stdClass();
> if ($foo == null || $foo != null) { echo 'Never gets echoed'; }
From a pure computer science point of view, the above makes complete
sense. Null means unknown value, so nothing is equal to it, not even
another
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
Just to add my 2c, I am currently trying to migrate a legacy PHP4
application to PHP5, and one of the huge hurdles is a set of classes
representing a group of tasks, each class having a method called try().
These classes are used in over 100,000 l
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
Pierre wrote:
> On 5/11/06, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: RIPEMD160
>>
>> Just to add my 2c, I am currently trying to migrate a legacy PHP4
>&g
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
Sean Coates wrote:
>> In any event, I'm just trying to indicate that others may also face
>> issues if they have PHP4 apps with these sorts of keywords in them.
>
> "try" has been a reserved word (documented) since Fri Oct 1 08:07:16
> 2004 UTC:
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
Richard Lynch wrote:
> On Thu, May 11, 2006 2:30 pm, Jasper Bryant-Greene wrote:
>> From a pure computer science point of view, the above makes complete
>> sense. Null means unknown value, so nothing is equal to it, not even
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
Steph Fox wrote:
>> Ones again E_ALL is for development. For example to move PEAR code to
>> PHP 5.
>> It is not for running legacy apps. IF you guys want i'd be ok with
>> adding a
>> new mode say "E_RUN"...
>
> You think that - I think that. A
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
Zeev Suraski wrote:
> I have to say that in second thought (after realizing what you really
> meant) it sounds like a very useful feature.
[snip]
> In order to push complexity down I'd avoid making this yet another
> modifier, and in fact make thi
bly thorough testing
(both a 'make test' and real-world app testing) of 5.x releases on a
very large OO application running on Linux / Apache 2.2. It's not an
open-source app, but that doesn't mean I can't help with testing, does it?
- --
Jasper Bryant-Greene
General Manager
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
Richard Lynch wrote:
> On Tue, May 16, 2006 2:12 am, Jasper Bryant-Greene wrote:
>> I like this idea. I can volunteer to do reasonably thorough testing
>> (both a 'make test' and real-world app testing) of 5.x relea
s far as E_STRICT goes: +/- 0
> Addition of support for dynamic statics ala: class foo {} foo::$bar =
> 1;
+1
- --
Jasper Bryant-Greene
General Manager
Album Limited
http://www.album.co.nz/ 0800 4 ALBUM
[EMAIL PROTECTED] 021 708 334
-BEGIN PGP SIGNATURE-
Version
08 10:29:26 PDT which is the day I submitted it.
>
> Basically I wanted to know if anyone had/will review it or if there is
> some other problem.
>
> Thanks,
> Joshua "Schmalls" Thompson
>
- --
Jasper Bryant-Greene
General Manager
Album Limited
http://www.album
active development.
+PHP_5_2 Is used to release the PHP 5.2.x series.
PHP_5_1 Is used to release the PHP 5.1.x series. Only minor feature
enhancements may go in here, but please keep that as
infrequent as
possible.
- --
Jasper Bryant-Greene
General Mana
ethodName()
[static call]?
- --
Jasper Bryant-Greene
General Manager
Album Limited
http://www.album.co.nz/ 0800 4 ALBUM
[EMAIL PROTECTED] 021 708 334
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (MingW32)
iD8DBQFEdZo6FfAeHhDzT4gRA/+SAKChatBRNsYIbxg42oQ6wOB9eOGY7wCg1mnc
3KjgLHqnuV4j
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
Edin Kadribasic wrote:
> Jasper Bryant-Greene wrote:
>> Christian Schneider wrote:
>>
>>> PS: There are no plans to make non-static calls to static methods
>>> illegal, right?
>>
>> What is the p
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
Would you care to elaborate? Maybe a sample script that exhibits this
behaviour?
Jasper
steve wrote:
> What if it requires a PHP script flaw also (like calling a method from
> an object that doesn't exist)? I can shut down many a site that have
l DB connection resource as the
>>> first parameter rather than the second. (Same as other pgsql functions)
>>>
>>> Any comments?
>>>
>>> There may be cause to backport these functions ... although the
>>> existing pg_escape_string function is safe
ther than
> what the object is willing to call itself.
I would imagine that __hash() or whatever it is called would be defined
on all objects and implemented internally in PHP, and would simply
generate some internal hash that is unique for all objects.
- --
Jasper Bryant-Greene
General Manager
Alb
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
All I've got to say on the matter is that if anyone is relying on that
kind of behaviour for something serious, then their code deserves to break.
Jasper
Richard Lynch wrote:
> That *IS* a current behaviour.
>
> Returns a warning and leaves the
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
Try opening the suspect file in a hex editor, or some editor which won't
hide special characters (e.g. ASCII 27) from you. I think you'll find
that one has somehow wound its way in there. Either that, or current
PHP_5_2 is messed up in some way =)
C)) &&
> !(proto->common.scope->ce_flags & ZEND_ACC_INTERFACE)) {
> return 1;
> }
>
> /* check number of arguments */
> - if (proto->common.required_num_args != fe->common.required_num_args
> - || proto->common.num_arg
On this note, given that there are no real inheritance rules applying
w.r.t. static methods, does it not make sense to allow different
parameters on subclasses as these are effectively different methods as
opposed to overloading in the strict sense?
- --
Jasper Bryant-Greene
Director
Album Limited
[EM
rs to become a bad value.
>
> So I hope someone here can help me or give me some pointers
> to get help...
>
> Thanks in advance,
>
> Roland
>
- --
Jasper Bryant-Greene
Director
Album Limited
[EMAIL PROTECTED]
+64 21 708 334 / 0800 425 286
http://ww
ot accept that
> anymore.
As a cool-headed outside observer... looking at the two possible APIs,
we have (correct me if I am wrong):
* Pierre's suggested API - returns FALSE in two possible situations with
no way to distinguish between the two.
* Derick's suggested API - returns NU
too here.
>>
>> It will IMHO slow down the adoption of 5.2, as - I assume - a
>> significant part of scripts will fatal out in 5.2. And this certainly
>> won't make all those people happy, who already had to rewrite their
>> programs for making them 5.0/1 compatible
and
>> http://marc.theaimsgroup.com/?t=11473498624&r=1&w=2
>>
>> regards,
>> Derick
>>
>> --
>> Zend Engine CVS Mailing List (http://cvs.php.net/) To
>> unsubscribe, visit: http://www.php.net/unsub.php
>>
>> --
>
t see a reason why you would want to, as it's effectively an
associative array with syntax that fools people into thinking you're
writing OO code :>
As to mydb_fetch_object()... what was wrong with mydb_fetch_assoc()?
What does mydb_fetch_object() add to it other than aforementioned syntax
ough. Enabling this by default is good
because you will notice when code you are using becomes deprecated.
However it probably shouldn't be enabled in production as you should be
upgrading PHP on a development/testing/staging system before you do so
on a live server!
--
Jasper Bryant-Gr
ht now) would be GrandParent::__construct(), but
> this is not OOP anymore.. So it seems kind of weird that we get limited
> in functionality, for OOP-ness, but not adding the functionality to
> solve common design problems that we're raised by introducing this..
>
> Will we get
46 matches
Mail list logo