Re: [PHP-DEV] PHP 5 mailing list

2003-02-03 Thread Ivan Ristic
I am very happy that the mailing-list tab on the PHP main web site doesn't include it yet. I'd prefer only people who are active in the developer's community (i.e. php-dev, php-qa) to be part it. Was there ever a discussion of introducing a more formal organisation into the development pro

[PHP-DEV] Re: OO in PHP5 (was "zend_API.c" on php-dev)

2003-02-03 Thread Ivan Ristic
andrei's point: extensions should stick to either functional or oo API PEAR wrappers can be provided my point: extensions should expose both APIs (if desired) can be done by aliasing functions to class methods -> no duplicate c code when called as function -> print warning when called as method

[PHP-DEV] CVS Account Request: ivanr

2003-01-26 Thread Ivan Ristic
I want to bring my involvement with PHP to the next level: bug fixing, documentation, annotated manual, working on new features to enhance security. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] request data filter

2003-01-16 Thread Ivan Ristic
I suppose I could munge with the apache tables directly in a hook before the data is read by the standard treat_data hook, although for post data I am not sure I have any way to get in there before the ap_get_client_block() call and change what data ap_get_client_block() is going to see. I do

[PHP-DEV] $php_errormsg not populated

2002-12-14 Thread Ivan Ristic
) = IS_STRING; zend_hash_update(EG(active_symbol_table), "php_errormsg", sizeof("php_errormsg"), (void **) & tmp, si } --- -- Ivan Ristic, http://www.webkreator.com -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] downgrade undefined function from fatal error

2002-12-14 Thread Ivan Ristic
trivial. It was made a while ago and it seems that it still works (just tried it with 4.2.3) http://www.webkreator.com/php/configuration/automatic-php-class-loading.html -- Ivan Ristic, http://www.webkreator.com -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit

[PHP-DEV] Re: Cookie Session Problem

2002-12-06 Thread Ivan Ristic
The problem i'm having is that the session id is showing up in the url when a user moves to the next page in the site, but then after that it stop showing up in the url (the way it should be). I don't want the session id (periodically) showing up in the url this causes me problems on certain thi

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Ivan Ristic
There is a servlet which accepts requests and uses native code from libphp4.so to execute them. At the same time, the Java extension is used to provide access to Java objects from PHP itself. but the ext/java as it is would not be suitable, as it would spawn new JVMs every once in a w

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Ivan Ristic
You can perhaps try to use it the other way around, have PHP run inside a Java VM. You can also try to get the source code how would this work? can you send me pointers? There is a servlet which accepts requests and uses native code from libphp4.so to execute them. At the same time,

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Ivan Ristic
Right, but you can still use shared memory, or, you can store persistent objects onto the filesystem. We've done the later with satisfactory results. > Point taken. But this only allows to share resources that can be copied into and from IPC shared memory. Some resources (like open datab

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Ivan Ristic
From the PHP point of view, you can get problems with persistent database connections on a very high load site, that's true. But that's about the only problem. Sure, you can't build a persistent storage of information in the server but that's a minor issue. It's not a minor issue. Usin

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Ivan Ristic
Database connections (and other resources) are persistent on the per-server-process level. What this means that an open connection in one server process cannot be reused from within another server process. I see. This is sad news indeed. From the web serving point of view it isn't.

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-04 Thread Ivan Ristic
How is a persistent database connection handled then? e.g. in the mysql module? Apache 1.x pre-creates a number of server processes. Each process handles a certain number of requests (one at a time), and then dies. It is then replaced with an another server process. The number of proces

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-04 Thread Ivan Ristic
What I'm looking for is that the JVM would not be discarded on a regular basis, but it would remain persistent. I do not think that is possible, unless PHP engine itself is contained within a single process (and runs multithreaded). Which it isn't (under Apache 1.x & , at least). You c

Re: [PHP-DEV] Re: bug of the day: $this

2002-12-03 Thread Ivan Ristic
$this stays defined when an instantatiated member function calls a non-instantiated member function. Correct. I actually find it quite interesting. :) It can be useful at times, I have used it in my libraries as a feature. There is an interesting article on the subject: http://www.ad

[PHP-DEV] Handling fatal and parse errors (just a link :)

2002-12-03 Thread Ivan Ristic
rewrite it. The example code can be downloaded from the article. http://www.webkreator.com/php/configuration/handling-fatal-and-parse-errors.html -- Ivan Ristic, http://www.webkreator.com -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: bug of the day: $this

2002-12-03 Thread Ivan Ristic
subject: http://www.advogato.org/article/470.html -- Ivan Ristic, http://www.webkreator.com -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Redirect on Error (not localisation)

2002-11-26 Thread Ivan Ristic
> Anyway... So what of my actual patch we were discussing at > some point? I never got a real answer as to if it would be > suitable to commit. I have changed the subject of the message in an effort to separate the discussion on the "Redirect on Fatal Error" feature (the subject of this

Re: [PHP-DEV] error reporting for PHP5

2002-11-25 Thread Ivan Ristic
Sorry to jump in the middle of a conversation, but I just wanted to say that I personally use trigger_error() quite often. Me too, I use it for warnings, notices, and errors that cannot be remedied. In my programs I also simulate custom error codes. The first part of the error string lo

Re: [PHP-DEV] error handling

2002-11-21 Thread Ivan Ristic
James Cox wrote: Also, from a management point of view (I manage programmers), what you are describing there can work in some cases but what if a programmer forgets/is-too-lazy to to that? I don't want to wait for the next morning to know about it. if a programmer is too lazy to test, f

Re: [PHP-DEV] URL for segfaults

2002-11-21 Thread Ivan Ristic
Steven Roussey wrote: > Yes. Ideally such that you can grep for the failed URLs. I can see this > as being very helpful to a lot of people. Debug modes don't work for > production servers and it is only there that it is showing itself. > > BTW - Easy for you maybe! Don't take my word, have a lo

Re: [PHP-DEV] URL for segfaults

2002-11-21 Thread Ivan Ristic
Steven Roussey wrote: No. And I wish access_log logged requests at the beginning of a request and had the child pid. It would be very easy to write a custom module to log that at the beginning of the request. Would that help? Ivan -- PHP Development Mailing List T

[PHP-DEV] Re: error reporting for PHP5

2002-11-21 Thread Ivan Ristic
Throwing this idea on another time can sound rush. Rright now, when our heads are occupied analysing error reporting, this can result being more productive, IMO. And, it is till related anyway. I don't mind, I just don't want the patch forgotten :) Ivan -- PHP Development Mailing List

[PHP-DEV] Re: error reporting for PHP5

2002-11-21 Thread Ivan Ristic
> I will start laying out some my thoughts to hopefully get a discussion > towards working on the complete error reporting logic. I had an > extensive experience implementing custom errors, so approve or > disapprove my ideas. I like your ideas too, but some of your suggestions need to be co

Re: [PHP-DEV] error handling

2002-11-21 Thread Ivan Ristic
We were talking about parse errors here. php -l before you put it life should be enough for that. And yes, I run that before 'cvs commit'. Well, I am afraid that it is not that simple, as there are other fatal errors that cannot be caught and where lint is useless. For example, $object

Re: [PHP-DEV] error handling

2002-11-21 Thread Ivan Ristic
Mike Robinson wrote: In Real Life [Patent Pending], if you cripple your production site in the middle of the night then go to bed, you won't have to worry about any of this because you'd be unemployed in the morning. I assume then that you run regression tests for your web sites after every

Re: [PHP-DEV] error handling

2002-11-21 Thread Ivan Ristic
Edin Kadribasic wrote: On Thursday 21 November 2002 08:04, Derick Rethans wrote: >I still think that an included file just should fail hard and I just >dont like this kind of obfucsication. I agree with this 100%. It is IMHO a complete waste of time trying to handle parse errors gracefully. M

Re: [PHP-DEV] error handling

2002-11-21 Thread Ivan Ristic
John Coggeshall wrote: If I hacked on the source a bit and got this redirect-error thing working, would it Be perhaps worthy of a commit? +1 Bye, Ivan -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] error handling

2002-11-20 Thread Ivan Ristic
The problem with this is that the 500 error does not provide any information about the error. To the user, no. I wouldn't want users to see low level error messages anyway. Since standard error handlers can catch "normal" messages, the fact that a 500 error has occured means that someth

Re: [PHP-DEV] error handling

2002-11-20 Thread Ivan Ristic
Create a configuration directive error_handler which accepts one of Two values... Either a PHP script (like auto_prepend) which is And how about that we change PHP so that it changes the status of the response to 500 on a fatal error? Then you would be able to use the Apache directive

Re: [PHP-DEV] error handling

2002-11-20 Thread Ivan Ristic
John Coggeshall wrote: |I know this is possible now, but not within the error handling |function of PHP, or without setting a custom error handler. Well, it's not really possible now -- a E_PARSE won't get thrown to a custom PHP handler, it'll just die with a parse error. It is possible. Not

Re: [PHP-DEV] code profiler

2002-06-25 Thread Ivan Ristic
> i am searching for a PHP code profiler DBG (http://dd.cron.ru/dbg/sshot.php) seems to be doing what you need. The link points to the screenshots page, and some screenshots show the profiler in action. -- Best regards, Ivan Ristic, Chief Technology Officer DataGate Network Solutions

Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-13 Thread Ivan Ristic
ng looked up in MyClass1 and > "MyClass3". The question is if people will manage to handle this. I think > it might be complicated and it might be best not to go in this direction. I see the problem. But I would also like to play with it to understand it better. Why don't yo

Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-12 Thread Ivan Ristic
sing nested classes can always write the __autoload() function that will be smart enough. -- Ivan Ristic, [EMAIL PROTECTED] [ Weblog on PHP, Software development, Intranets, and Knowledge Management: http://www.webkreator.com ] -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-11 Thread Ivan Ristic
> Okay, I guess I can live with it :) > > Andi Is there anyone else who would like to comment on the patch? http://www.webkreator.com/download/class_autoload.patch Or can we have it committed? -- Ivan Ristic, [EMAIL PROTECTED] [ Weblog on PHP, Software development, Intra

Re: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-09 Thread Ivan Ristic
t have to worry about a large number of small files). -- Ivan Ristic, [EMAIL PROTECTED] [ Weblog on PHP, Software development, Intranets, and Knowledge Management: http://www.webkreator.com ] -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-09 Thread Ivan Ristic
function can then find the class, and in that case the execution can continue as normal. Can someone please review the patch and then commit it to the CVS? This is the link to the original email and to the patch itself: http://marc.theaimsgroup.com/?l=php-dev&m=102311009628061&w=2 -- Iva

Re: [PHP-DEV] WHAT is PHP's vision????

2002-06-03 Thread Ivan Ristic
> Ultimately it is the job of the Core Developers to accept or decline patches, > as the end user you of course can choose to compile or not compile a module > you dislike. If you are diluding yourself into thinking that people will > voluntarily code what they are 'told' to code, they'll do what

Re: [PHP-DEV] WHAT is PHP's vision????

2002-06-03 Thread Ivan Ristic
chnology. Otherwise, PHP will be a boat where everyone paddles independently. Sure, we are moving - but where to? We should all agree that there is a really nice green island in front of us, join forces, and simply go there. -- Ivan Ristic, [EMAIL PROTECTED] [ Weblog on PHP, Software devel

Re: [PHP-DEV] Class autoload patch

2002-06-03 Thread Ivan Ristic
oduction code. > > Example: > > function _autoload($classname) { > @include_once("class.$classname.php"); > } > > ini_set("unserialize_callback_func", "_autoload"); > > // the following will work even if class X has > // not be de

[PHP-DEV] Class autoload patch

2002-06-03 Thread Ivan Ristic
even if class X has // not be defined so far $x = new X(); -- Ivan Ristic, [EMAIL PROTECTED] [ Weblog on PHP, Software development, Intranets, and Knowledge Management: http://www.webkreator.com ] -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] WHAT is PHP's vision????

2002-06-03 Thread Ivan Ristic
nothing wrong for me even with > totally different developments. I do not believe in plans carved in stone either. Plans can and should change but I would argue that simply having a plan is much more efficient than not having it. -- Ivan Ristic, [EMAIL PROTECTED] [ Weblog on PHP, S

Re: [PHP-DEV] WHAT is PHP's vision????

2002-06-03 Thread Ivan Ristic
the whole thing and thinks about my needs (I am talking about the global userbase, as very few people contribute to the core PHP effort). -- Ivan Ristic, [EMAIL PROTECTED] [ Weblog on PHP, Software development, Intranets, and Knowledge Management: http://www.webkreator.com ] -- PHP D

Re: [PHP-DEV] WHAT is PHP's vision????

2002-06-03 Thread Ivan Ristic
be neglected either. If you go to the main web site, you can't find a single word about what is going to happen next. Now, if I am to choose PHP for my business I want to know that -- Ivan Ristic, [EMAIL PROTECTED] [ Weblog on PHP, Software development, Intranets, a

Re: [PHP-DEV] WHAT is PHP's vision????

2002-06-03 Thread Ivan Ristic
able to see what is happening in the community, who is doing what, and where the help is needed. The way I see it, everyone has an itch to scratch, and we need to have all people with the same itch united. Would this be used if it existed? -- Ivan Ristic, [EMAIL PROTECTED] [ Weblog on PHP

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread Ivan Ristic
understand the email you sent earlier :) -- Best regards, Ivan Ristic, Chief Technology Officer DataGate Network Solutions Ltd. - http://www.datagate.net Tel: +44 8700 119090, Fax: +44 8700 119080 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread Ivan Ristic
ecution of that page. psv_unlock(string var_name); ... I assume that we will be able to make whole objects persistent, no? -- Best regards, Ivan Ristic, Chief Technology Officer DataGate Network Solutions Ltd. - http://www.datagate.net Tel: +44 8700 119090, Fax: +44 8700 119080 --

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread Ivan Ristic
ke "application_name", and that would then define security for these kinds of things (naturally, you won't be able to change this one from the script :). -- Best regards, Ivan Ristic, Chief Technology Officer DataGate Network Solutions Ltd. - http://www.datagate.net Tel:

Re: [PHP-DEV] class variable problem

2002-02-12 Thread Ivan Ristic
able then it won't be listed using get_class_vars(). Now that is confusing. Can we have default values? -- Best regards, Ivan Ristic, Chief Technology Officer DataGate Network Solutions Ltd. - http://www.datagate.net Tel: +44 8700 119090, Fax: +44 8700 119080 -- PHP Development Mailing Li

Re: [PHP-DEV] [PROPOSAL] defense against session takeovers

2002-02-05 Thread Ivan Ristic
> > The real IP address can be tracked in most cases (say, using the > > HTTP_X_FORWARDED header an others) but I am not really sure that we > > should put the logic for that in the PHP engine itself. Users can > > add the additional PHP code to their libraries. Anyway, you can > > chan

Re: [PHP-DEV] Re: Developer Seeking To Help

2002-02-04 Thread Ivan Ristic
ated the FTP extension to include a couple of more functions (send raw command and get the raw response body), and I would like to send the patch now. Is all I need to know available in "man patch"? -- Best regards, Ivan Ristic, Chief Technology Officer DataGate Network

Re: [PHP-DEV] [PROPOSAL] defense against session takeovers

2002-02-02 Thread Ivan Ristic
d then read all files. This can be cured only by using the proper PHP engine configuration. Therefore, let us document this and leave it as is. -- Ivan Ristic, [EMAIL PROTECTED] [ Weblog on PHP, Software development, Intranets, and Knowledge Management: http://www.webkreator.com ] -

Re: [PHP-DEV] [PROPOSAL] defense against session takeovers

2002-02-02 Thread Ivan Ristic
g that they know what they're doing). This will secure the default configuration and yet make things work for people who want to use sessions over several domains. We can make this "on" by default but also allow it to be turned off it case it creates problems for someone.

Re: Re[2]: [PHP-DEV] [PROPOSAL] defense against session takeovers

2002-02-01 Thread Ivan Ristic
> Why would you switch on safe_mode if you have a dedicated server? That > makes no sense. It can be useful to minimise the damage in case someone finds a hole in your PHP scripts, and the hole allows them to access files on the server. -- Ivan Ristic, [EMAIL PROTECTED] [ Weblog

Re: [PHP-DEV] [PROPOSAL] defense against session takeovers

2002-02-01 Thread Ivan Ristic
ases (shared hosting solutions). -- Ivan Ristic, [EMAIL PROTECTED] [ Weblog on PHP, Software development, Intranets, and Knowledge Management: http://www.webkreator.com ] -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: [PHP-DEV] [PROPOSAL] defense against session takeovers

2002-02-01 Thread Ivan Ristic
ables and then switch to the other application with arbitrary privileges. ASP-s are most vulnarable here. If two instances of the same applications are running on the same server, then the administrator of one application can quite possibly become the administrator of the other... -- Ivan