Jason Garber wrote:
Hello internals,
Since nobody could seem to agree on a language construct for
accessing a variable that you don't know exists (ifsetor),
I would like to propose a simpler approach.
It returns the value of the passed variable, or NULL if the variable
does
Should I have opened a BUG report instead ? It's just an one line patch...
Let me know if I need to open a BUG report.
Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
, just an empty default
value(string, zero, etc.). You can't i.e. initialize $_GET[ConfirmCode]
with Yes using settype...
Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
(__GNUG__)
# define ZSTR(x)((zstr)(x))
# define NULL_ZSTR ZSTR((void*)NULL)
# define EMPTY_ZSTR ZSTR(\0\0)
Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
end to be freed' ?
Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
please tell me before they know about it (so I have time to give it up: I
really don't want to).
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Simon Kissane wrote:
Bug #14923 concerns PHP's is_writable, etc., functions POSIX ACLs.
Likewise, Bug #30931 concerns the same thing.
This bug has been fixed in CVS as pointed by Bug #34957.
So Bugs #14923, #30931 and #34957 are all finally closed, thanks to Wez.
Regards,
Cristiano Duarte
This bug has many comments waiting for answer. Can someone, please, take a
look at it?
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
on line
6
I need a way to force a class to have a static method using interfaces. Now
I can't do it anymore. Is it possible to put this feature back on CVS
again ?
Best Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net
) Optional argument (with typehint)
publicfunctionCompare($cmpFunc,BaseClass$objA=null);
Ex: Compare('func1');
Am I right ? Is it possible to implement all three syntaxes ?
IMH it would satisfy everybody's needs.
Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
to make typehinted parameters optional, just use syntax #3.
I really don't see any problem allowing this three syntaxes(but I'm not very
clever since I'm for syntax #1) :-P
Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net
to make typehinted parameters optional, just use syntax #3.
I really don't see any problem allowing this three syntaxes(but I'm not very
clever since I'm for syntax #1) :-P
Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net
.
If someone wants to make typehinted parameters optional, just use syntax #3.
I really don't see any problem allowing this three syntaxes(but I'm not very
clever since I'm for syntax #1) :-P
Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit
. Downside - you cant pass optional params after the first one.
-1
(...)Typed optional params that cannot be null.
-1
Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
or null. Am I right ?
The use of null (I know it's not a value it's a type...) is
justified because we don't have a value to represent
a NULL OBJECT(or NO OBJECT).
IMO, this is a necessary feature (maybe others thing this way
too) and that's why I brought it back.
Cristiano Duarte
--
PHP
Georg Richter wrote:
Am Sa, den 16.10.2004 schrieb Cristiano Duarte um 21:13:
Hi @ll,
Now that 5.0.3 is out
Doohh 5.0.3? I didn't see any announcement and I planned to commit
several stuff before :(
Sorry Georg. I meant: Now that 5.0.2 is out...
Cristiano Duarte
--
PHP Internals - PHP
and construction-2 supports it.
IMHO, everybody would be happy.
Any comments ?
Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Andrey Hristov wrote:
is make test showing problems? (i am just currious).
I will try to review the patch later today (atm i am sick).
Nope. Make test shows the same errors before and after the patch.
I decided to attach the patch since it will keep tabs...
Cristiano Duarte
--- array.c 2004
()
I have added these already. :-)
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
()
I changed the function name from array_udiff_key to array_diff_ukey.
Is this ok ? Patch attached.
Cristiano Duarte
--- array.c 2004-07-11 18:15:04.0 -0300
+++ /home/aluno/php-5.0.0-new/ext/standard/array.c 2004-07-21 11:47:58.0 -0300
@@ -77,6 +77,7 @@
#define DIFF_NORMAL 0
the intersection only comparing the array
keys.
If someone would like to commit it, maybe it would be useful to other users.
Regards,
Cristiano Duarte
***Patch for PHP 5.0.0
--- array.c 2004-07-11 18:15:04.0 -0300
+++ /home/aluno/php-5.0.0-new/ext/standard
On Wed, 18 Feb 2004 17:37:31 +, Wez Furlong wrote:
C++ allows $a-bar() when bar() is a static method (yes, it is called
in a static context there too).
IMO, there should be no error, warning or notice here.
I Agree. PHP is fine the way it is.
Cristiano Duarte
--
PHP Internals - PHP
overriding(with a different signature - arguments). The only way is
overloading, but PHP doesn't support it(you can do overloading with
__call, __get and __set but that's not the case).
BTW, overriding with default arguments will be a nice feature.
Cristiano Duarte
--
PHP Internals - PHP Runtime
, PHP shouldn't allow the overriding of methods with
different signatures or register, at parse time, that the child break the
inheritance for each parent that has methods overriden with different
signatures.
Best Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
instances of classes wich
implement this interface should be throw or caught(language enforcement).
With this enforcement, we can have a catch all for exceptions with less pain.
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net
' operands, but I
would prefer it to be an interface instead of a class. In that case, it
is a lot easier to plug your own class (hierarchy) into the exception
framework.
I agree.
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net
is becoming real it's
because of you.
Cristiano Duarte.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
experiencing the same problem with my PHP5 CORBA
extension.
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
returned from thrownException() has a
__toString() method?
IMHO I think it should be supported by print (echo). Without,
this support, it will be only a naming convention...
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
. If the DOM extension (and many others)
must use StudlyCaps (because of W3C specifications), all OO-based extension or
code should use too.
We can live with a CS for procedural and other CS for OOP.
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http
Derick Rethans wrote:
From what I saw more people don't want those suckyCaps .
Sorry Derick, but it seems that more people want studlyCaps in
Object-Oriented PHP and underscores in procedural PHP.
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit
till then, but PHP5 is a start and there are a
lot of developers contributing for it.
Best Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
that (*path_for_open)++ will make it.
Best Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Andi Gutmans wrote:
This should be changed to (*path_for_open)++
In fact, it's (*path_for_open)-- :-)
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
The current implementation of file:// support under
main/streams/strems.c has a little bug.
Maybe it's my gcc 3.2.2 compiler... I don't know...
Anyway, the attached patch fixes it.
Best Regards,
Cristiano Duarte
? php-src/ZendEngine1
Index: php-src/main/streams/streams.c
Regards,
Cristiano Duarte
? php-src/ZendEngine1
Index: php-src/Zend/zend_compile.c
===
RCS file: /repository/ZendEngine2/zend_compile.c,v
retrieving revision 1.491
diff -u -r1.491 zend_compile.c
--- php-src/Zend/zend_compile.c 7 Nov
,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
,
Cristiano Duarte
? php-src/ZendEngine1
Index: php-src/Zend/zend_alloc.c
===
RCS file: /repository/ZendEngine2/zend_alloc.c,v
retrieving revision 1.129
diff -u -r1.129 zend_alloc.c
--- php-src/Zend/zend_alloc.c 17 Oct 2003 02:29:06
,
Cristiano Duarte
? php-src/ZendEngine1
Index: php-src/Zend/zend_compile.c
===
RCS file: /repository/ZendEngine2/zend_compile.c,v
retrieving revision 1.491
diff -u -r1.491 zend_compile.c
--- php-src/Zend/zend_compile.c 7 Nov 2003 10:22
to make code redundancy...
I know it's not critical, but IMHO it's important. I hope I was clear enough... :-)
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi internals !
I really need an opinion about this.
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
to make code redundancy...
I know it's not critical, but IMHO it's important. I hope I was clear enough... :-)
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Can you please not send uuencoded stuff but just attach the files as
plain text?
Sorry Derick, I didn't mean to.
The patch is now included as plain text.
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Can you please not send uuencoded stuff but just attach the files as
plain text?
Sorry Derick, I didn't mean to.
The patch is now included as plain text.
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Derick Rethans wrote:
Can you please not send uuencoded stuff but just attach the files as
plain text?
Sorry Derick, I didn't mean to. :-(
The patch is attached as plain text now.
Cristiano Duarte
? php-src/ZendEngine1
Index: php-src/Zend/zend_alloc.c
Oops, I figure out that the patch was incorrect, since the function call
should be zend_hash_destroy instead of zend_hash_clean. Sorry. :-p
New patch included.
Now the memory leaks are gone forever !
Cristiano Duarte
begin 666 ze2_internal_symtables.patch
M/R!P:' MW)C+UIE;F1%;F=I;F4QDEN95X.B!P
without finally and without code redundancy,
I
really need it.
Any ideas ?
Best Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
out an example that really needs finally.
Thanx
I can't think of another solution right now. But if I figure out
something I'll let you know.
Ok.
Best Regards,
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Andi,
In fact Moriyoshi pointed out this problem in hist Registering constants to
internal classes (ZE2) message:
http://www.zend.com/lists/php-dev/200307/msg00023.html
The code I provided fix this problem, if it's a problem...
Cristiano Duarte
--
PHP Internals - PHP Runtime Development
.
This patch introduces a new macro called ZEND_INIT_INTERNAL_SYMTABLE wich is
to be used instead of ZEND_INIT_SYMTABLE when the hashtables is internal.
That's the only change that should be done in sources that needs internal
hashtables.
Best Regards,
Cristiano Duarte
begin 666
to mention that there must be one catch all clause(wich is
impossible in PHP) with a copy of the finally code and a rethrowing
exception statement otherwise an exception that is not caugh will propagate
without executing the replicated code of finally.
Cristiano Duarte
--
PHP Internals - PHP Runtime
Derick Rethans [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
On Mon, 29 Sep 2003, Cristiano Duarte wrote:
Shouldn't class constants support simple expressions ?
No.
So It's a compiler bug if it not complaining abount contant expressions...
P.S.: I remember that on this list
;
}
?
Results in segmentation fault.
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Did anyone think about it ? Any opinions ?
Cristiano Duarte.
Cristiano Duarte [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Hi all,
Is this supposed to work?
interface test {
function my_function ($mandatory_parameter);
}
class test_class implements test
. Instead,
if we can catch this (at the moment) unknown exception, maybe it would be
possible to recover the program stability.
Cristiano Duarte
Andi Gutmans [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Hi Marcus,
I implemented this functionality about a year ago (if I'm not mistaken
- Original Message -
MBFrom: Marcus Börger [EMAIL PROTECTED]
MBTo: Cristiano Duarte [EMAIL PROTECTED]
MBSent: Saturday, September 06, 2003 5:12 PM
MBSubject: Re: before beta 2
MB
MB
MBHello Cristiano,
MB
MByou should have asked on the list
Sorry about that. It's on the list now
, and after a day, our patch would be broken, or we'd constantly
have to remerge. Nearly every optimization applys to Zend Engine 2,
with the exception of the optimizations that are already in Zend Engine
2 that is :)
-Sterling
Am Mo, 2003-09-01 um 01.29 schrieb Cristiano Duarte:
Does these hacks
PHP
does not allow multiple explicit method declarations (explicit overloading).
IMHO, if all additional parameters are optional, the interface commitment is
preserved.
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
.
Cristiano Duarte.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
be used this way, but it shouldn't. The function
name has a meaning specific for arrays. We must have a not so specific way
to detect if a variable(or attribute) exists or not.
Cristiano Duarte.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net
.
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
)
Cristiano Duarte.
Alan Knowles [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
switch/case removed and patch attached. Is it ok?
Should the method be named to_string(), tostring() or __tostring()
?
According to the current Coding Standard document.. it should be
toString() : even
and Andi on this :)
I agree.
Regards,
Cristiano Duarte
begin 666 toString.patch
M/R!P:' MW)C+UIE;F1%;F=I;F4QC\@AP+7-R8R]P:'!?=5S=%]R97-U
M;'1S7S(P,#,P.# [EMAIL PROTECTED]'ATDEN95X.B!P:' MW)C+UIE;F0OF5N
M9YCCT]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T*4D
Hello Marcus,
Did you think of a better interface name instead of Printable ?
Do you think Zeev or Andi will accept this patch ?
Cristiano.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Wez Furlong wrote:
Please, take it off this list.
Excuse me? What's the matter?
Cristiano Duarte.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
+1 for variable_exists
Cristiano Duarte
Lars Torben Wilson [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
On Thu, 2003-08-14 at 08:42, Andi Gutmans wrote:
I am not really convinced either that variable_exists() is
function_exists() parallel.
Under what circumstances
EXPERIMENTAL
status.
Are these bugs related to Apache2 interface or Apache2 multithreaded
(worker) ?
Redhat released a beta compiler despite warnings from developers of said
compiler.
Shame on them. :-(
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit
This discussion simply doesn't belong on internals@, please, take it off
this list.
Try pear.devl.
Cristiano Duarte.
Daniel Penning [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Hi
PHP5 should support a standardized oo way to access databases of any
type. I heard that mysqli
the filesystem. IMHO the
par file must be searched first (for security reasons).
Maybe, we can store the par file structure in memory to speed the file
seaching.
Cristiano Duarte
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
(like .tar.bz2).
If we can have native support for .tar.bz2 I agree with your point of
view.
Cristiano Duarte.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
,
Cristiano Duarte
Cristiano Duarte [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Hi all,
I know there was a lot of discussion about try/catch, but I will bring it
up
again:
What about finally ?
I know someone posted that finally isn't necessary since PHP destroy all
variables
Best regards,
Cristiano Duarte
PS: the patch file needs to be applied inside ./Zend
Hello Cristiano,
Sunday, August 3, 2003, 5:33:25 AM, you wrote:
CD I made a patch to the latest PHP5-CVS wich implements this hook. I
think
CD it's useful to make a meaningful object stringfied value.
CD Can
I read README.SUBMITING_PATCH and attached the patch as specified.
Cristiano Duarte
Cristiano Duarte [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Marcus BöRger [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
The patch doesn't compile (always use
confugure
another patch.
Cristiano Duarte
Marcus BöRger [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Hello Cristiano,
Sunday, August 3, 2003, 9:54:55 PM, you wrote:
CD I read README.SUBMITING_PATCH and attached the patch as specified.
Not good enough it seems :-(
Some comments
the method be named to_string(), tostring() or __tostring() ?
Do you commit it to CVS ?
Cristiano Duarte
begin 666 to_string.patch
M/R!P:' MW)C+UIE;F1%;F=I;F4QC\@AP+7-R8R]P:'!?=5S=%]R97-U
M;'1S7S(P,#,P.# [EMAIL PROTECTED]'ATDEN95X.B!P:' MW)C+UIE;F0OF5N
M9YCCT]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T
Sorry guys,
$o = new xxx();
should be $o = new my_object();
And if there is a way to hook into zend_standard_class (stdClass) what would
make all objects inherit the to_string method, it would be great !
Cristiano Duarte
Cristiano Duarte [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL
for some people */
expr_copy-value.str.len = sizeof(Object)-1;
Thanx,
Cristiano Duarte.
Cristiano Duarte [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Sorry guys,
$o = new xxx();
should be $o = new my_object();
And if there is a way to hook into zend_standard_class (stdClass
Sorry, but didn't all there error/warnings/info got logged if you want ? I
think you can set loggin on in php.ini and IMHO that's the best place to dig
for bugs...
Cristiano Duarte.
Wojtek Meler [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Timm Friebe wrote:
On Tue, 2003-07
+1
Cristiano Duarte
Sterling Hughes [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Hey,
I'm putting this message out as a feeler. I'm going to go ahead and
remove the mysql library from the PHP source tree. This won't affect
the extension, it simply means we won't
not be extended by children,
assuring that its behaviour would not be modified. This is necessary since
this class is in fact a list of predefined constants (in the IDL agreement)
and if it gets modified at runtime this could lead to undesired results.
Cristiano Duarte.
Alan Knowles [EMAIL PROTECTED] escreveu
in the
extension to do some low-level operations (like Request object).
Any comments ?
Cristiano Duarte.
- Original Message -
From: Timm Friebe [EMAIL PROTECTED]
To: Cristiano Duarte [EMAIL PROTECTED]
Sent: Saturday, June 21, 2003 10:33 AM
Subject: Re: [PHP-DEV] about final methods and attributes
81 matches
Mail list logo