Re: [PHP-DEV] LDAP controls in response

2005-11-09 Thread Jani Taskinen
On Wed, 9 Nov 2005, Pierangelo Masarati wrote: On Wed, 2005-11-09 at 07:05 +0200, Jani Taskinen wrote: The control-patch looks okay. But the warning-fix-patch really doesn't. You're actually changing some functions behaviour with some of those changes. Maybe you didn't notice

Re: [PHP-DEV] LDAP controls in response

2005-11-09 Thread Pierangelo Masarati
On Wed, 9 Nov 2005, Pierangelo Masarati wrote: On Wed, 2005-11-09 at 07:05 +0200, Jani Taskinen wrote: The control-patch looks okay. But the warning-fix-patch really doesn't. You're actually changing some functions behaviour with some of those changes. Maybe you didn't

Re: [PHP-DEV] when will support for php 4 last?

2005-11-09 Thread Mikael Fern
hello jani, thanks for the info. yeah, the feature requests shouldn't be considered bugs but it's just what is in the mail.. :) also, outside of lxr.php.net http://lxr.php.net, is there any place that stores more readable documentation about the code? regards, On 11/9/05, Jani Taskinen [EMAIL

[PHP-DEV] Correct use of zend_list_delete

2005-11-09 Thread Marco Bambini
Maybe this is a question too simple for this list, but I am writing my first php extension (using php 4.4 SDK) so please, be patient... My extension (rsql) returns a custom struct to php so my code in my rsql_connect looks like: ZEND_FUNCTION(rsql_connect) {

[PHP-DEV] Lack of read permission on main script leads to E_WARNING

2005-11-09 Thread Ryan Dingman
I believe that I've found a bug in the way that PHP handles permission problems when accessing the main script. If I access http://localhost/foo.php and PHP does not have permission to read foo.php, I get an E_WARNING rather than an E_COMPILE_ERROR (include vs. require). This is in PHP

Re: [PHP-DEV] object-overloading: why not allow recursive calls? (5.1) hey, in zend_object_handlers.c function zend_std_read_property we protect against calling the __get function of an object if we

2005-11-09 Thread Andi Gutmans
This is intentional and I think it makes it much more fool-proof for developers. Adding recursion protection can be very expensive and complicated, and it doesn't seem to make sense here. The idea is that once you're in the __get() method, you know exactly how your properties are mapped and

Re: [PHP-DEV] object-overloading: why not allow recursive calls? (5.1) hey, in zend_object_handlers.c function zend_std_read_property we protect against calling the __get function of an object if we

2005-11-09 Thread Andi Gutmans
Thies, I think I might be wrong in my analysis. Seems like the problem is worse than what I thought as it seems to cross boundaries between classes. We'll look into it more. Andi At 02:15 PM 11/9/2005, Andi Gutmans wrote: This is intentional and I think it makes it much more fool-proof for

Re: [PHP-DEV] object-overloading: why not allow recursive calls? (5.1) hey, in zend_object_handlers.c function zend_std_read_property we protect against calling the __get function of an object if

2005-11-09 Thread Mike Naberezny
The problem does not cross class boundaries. However, here are some test cases to better illustrate the question: ?php class Test { function __get($offset) { switch($offset) { case 'hello1': return 'there'; case 'hello2':

[PHP-DEV] Good memory management

2005-11-09 Thread Bob Silva
Hi, Got a question on proper memory management within the engine. I have an object that stores an Array (IS_ARRAY) as a property. Inside this property array are other objects. So heres my memory layout for an initialized object: Object Property = Array (refcount = 1)

[PHP-DEV] Known Security Risks in PHP

2005-11-09 Thread R, Rajesh (STSD)
Hello there, Is there a specific web resource for known SSRT's(Security risks) in PHP ?? Any pointers would be helpful. Thanks, Rajesh R -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Known Security Risks in PHP

2005-11-09 Thread Kamesh Jayachandran
Hi, Stefan's http://www.hardened-php.net/advisories.15.html might be what you look at. With regards Kamesh Jayachandran On Thu, 10 Nov 2005 10:02:55 +0530, R, Rajesh (STSD) [EMAIL PROTECTED] said: Hello there, Is there a specific web resource for known SSRT's(Security risks) in PHP ??