[PHP-DEV] [PATCH] [RESEND] sapi/apache2*: USe the correct API at·server startup

2013-07-30 Thread Cristian Rodríguez
To proceed with startup at the second load only ap_query_state() must be used in newish versions of apache --- sapi/apache2filter/sapi_apache2.c | 11 +-- sapi/apache2handler/sapi_apache2.c | 12 ++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/sapi/apache2filt

[PHP-DEV] [PATCH] [RESEND] sapi/apache2*: Support apache 2.4 per module logging

2013-07-30 Thread Cristian Rodríguez
--- sapi/apache2filter/sapi_apache2.c | 3 +++ sapi/apache2handler/mod_php5.c| 4 2 files changed, 7 insertions(+) diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index c308a29..1448d52 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2f

Re: [PHP-DEV] [PATCH] Fix per-module logging in apache 2.4

2012-08-08 Thread Cristian Rodríguez
El 08/08/12 15:38, Pierre Joye escribió: > hi Chirstian! > > Could you please either (or both :) open a bug and attach the patch to > it or create a pull request please? I opened a pull request a few minutes ago., https://github.com/php/php-src/pull/154 Cheers ! -- PHP Internals - PHP Runti

[PHP-DEV] [PATCH] sapi/apache2*: Use ap_state_query where possible instead of old method of creating a pool userdata entry.

2012-08-08 Thread Cristian Rodríguez
--- sapi/apache2filter/sapi_apache2.c | 11 +-- sapi/apache2handler/sapi_apache2.c | 12 ++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index a8fec5c..21f2fa3 100644 --- a/sapi/apache2

[PHP-DEV] [PATCH] Fix per-module logging in apache 2.4

2012-08-06 Thread Cristian Rodríguez
--- sapi/apache2filter/sapi_apache2.c |3 +++ sapi/apache2handler/mod_php5.c|4 2 files changed, 7 insertions(+) diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index 0b51cfb..a8fec5c 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/ap

[PHP-DEV] [PATCH] fix memory leak in fpm_conf_set_array()

2010-12-27 Thread Cristian Rodríguez
Signed-off-by: Cristian Rodríguez --- sapi/fpm/fpm/fpm_conf.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c index 5d6fe77..5bd7e7c 100644 --- a/sapi/fpm/fpm/fpm_conf.c +++ b/sapi/fpm/fpm/fpm_conf.c @@ -318,7 +318,7

[PHP-DEV] [PATCH] Fix two broken tests

2010-12-27 Thread Cristian Rodríguez
Signed-off-by: Cristian Rodríguez --- ext/date/tests/bug51819.phpt |1 + ext/phar/tests/bug52013.phpt |2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ext/date/tests/bug51819.phpt b/ext/date/tests/bug51819.phpt index afcb9c7..7e9bbec 100644 --- a/ext/date/tests

[PHP-DEV] [PATCH] Add missing PHP_ATTRIBUTE_FORMAT to printf style functions

2010-12-27 Thread Cristian Rodríguez
Signed-off-by: Cristian Rodríguez --- main/snprintf.h | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/main/snprintf.h b/main/snprintf.h index 201a5cb..4371f6a 100644 --- a/main/snprintf.h +++ b/main/snprintf.h @@ -78,12 +78,12 @@ typedef enum

Re: [PHP-DEV] Real world database & statistics for phpBB3

2009-07-20 Thread Cristian Rodríguez
On 20/07/09 04:05, Alexander Hjalmarsson wrote: > If there's anyone here that might be able to help in this subject it's very > welcome. > PHPBB has absolutely nothing to do with this list. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP-DEV] Bus Error - Determining Script Name in GDB

2009-07-14 Thread Cristian Rodríguez
On 14/07/09 11:29, Bruce Bailey wrote: The problem appears to be in file_get_contents. Is there any way I can determine which script was being run at the time? yes, upgrade and: (gdb) source /path/to/php-src/.gdbinit (gdb) zbacktrace -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] Soap over SSL and

2009-07-07 Thread Cristian Rodríguez
On 07/07/09 10:18, Brian A. Seklecki wrote: If it did use libcurl, dozens of problems over the last few years would have magically solved themselves (pipe-line'ing, keep-alive, socket options, PKI, etc.) Not only this extension but pretty much everything should use curl IMHO, it is included i

Re: [PHP-DEV] Type hinting/casting request for vote

2009-07-07 Thread Cristian Rodríguez
On 06/07/09 20:52, Ilia Alshanetsky wrote: The final patch is available here: http://ilia.ws/patch/type_hint_53_v2.txt The test suit is available here: http://ia.gd/patch/type_hint_tests.tar.bz2 +1 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.n

Re: [PHP-DEV] Removing zend_hash_func in PHP 6.0

2009-06-02 Thread Cristian Rodríguez
On 26/05/09 08:36, Antony Dovgal wrote: 12:48<@tony2001> you can remove it, but leave a macro to make sure old code still works or just use __attribute__((alias(""))); ... -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Removing zend_hash_func in PHP 6.0

2009-05-29 Thread Cristian Rodríguez
ays. We can start with the attached patch and then remove it in the future... -- "If this is the best God can do, I am not impressed" -George Carlin (1937-2008) Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development

Re: [PHP-DEV] how can I check the url's validity

2009-05-21 Thread Cristian Rodríguez
This question is suited for php-general list and NOT for internals, anyway, install PHP5, and try again.. 4.3.9 is extremely old and you shouldnt be running that... -- "If this is the best God can do, I am not impressed" -George Carlin (1937-2008) Cristian Rodríguez R. Software De

Re: [PHP-DEV] Path length for files on NTFS

2009-01-16 Thread Cristian Rodríguez
Pierre Joye escribió: > which is defined at > compile time can also be obtained at runtime using pathconf(3) -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Produc

Re: [PHP-DEV] Re: [PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-29 Thread Cristian Rodríguez
Ilia Alshanetsky escribió: > + char buf[4096]; Shouldnt that be char buf[HOST_NAME_MAX + 1] ? -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research &

Re: [PHP-DEV] Undefined constants producing E_NOTICE

2008-12-20 Thread Cristian Rodríguez
e good if invoking undefined constants will start to produce at least > E_WARNING? Use class constants class foo { } echo foo::BAR; Fatal error: Undefined class constant 'BAR' ... that's what you are really looking for... ;) -- "We have art in order not to die of the truth&quo

Re: [PHP-DEV] Q on Primitives

2008-12-18 Thread Cristian Rodríguez
ot; - Friedrich Nietzsche Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] Is Empty functionality to the Directory Functions

2008-12-17 Thread Cristian Rodríguez
Ólafur Waage escribió: > $dir = dir("/foo/bar"); > var_dump($dir->empty()); // bool(true) Use SplDirectoryIterator instead. -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE

Re: [PHP-DEV] About dropping magic_quotes in 5.3 (was: Re: [PHP-DEV] Re: PHP 5.2.7 + magic_quotes_gpc broken)

2008-12-08 Thread Cristian Rodríguez
Johannes Schlüter escribió: > I don't safe stuff relying on magic_quotes is safe but kicking it will > open up way more attack vectors... :-( A false sense of security is worst than no security at all. -- "We have art in order not to die of the truth" - Friedrich Nietzsch

Re: [PHP-DEV] Re: PHP 5.2.7 + magic_quotes_gpc broken

2008-12-08 Thread Cristian Rodríguez
Pierre Joye escribió: > I would even like to drop it (and the other things as well) in 5.3.0 :) Yes, please :) but throw an error when use is detected. -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Platform/OpenSUSE - Core Servic

Re: [PHP-DEV] PHP 5.2.7 + magic_quotes_gpc broken

2008-12-06 Thread Cristian Rodríguez
sion (5.2.8 or 5.2.7.1) -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] Resource constants

2008-11-04 Thread Cristian Rodríguez
Lukas Kahwe Smith escribió: > Also should there be some other way to get STDOUT and STDERR defined I assume we are talking about userland constants right ? -- "Good, Fast, Cheap: Pick any two (you can't have all three)." Cristian Rodríguez R. Platform/OpenSUSE - Core S

Re: [PHP-DEV] Adding pecl/http to core

2008-10-27 Thread Cristian Rodríguez
Johannes Schlüter escribió: >or http.only_exceptions should > imo be set as object properties (or similar), not globally using ini > settings. Or just throw only exceptions and no ini setting at all. -- "A computer is like an Old Testament god, with a lot of rules and no merc

Re: [PHP-DEV] Resource constants

2008-10-27 Thread Cristian Rodríguez
A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV]

2008-10-26 Thread Cristian Rodríguez
ke. I understand why there was not other suitable alternative though :-( My sincere condolences. -- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research &a

Re: [PHP-DEV] following http://wiki.php.net/rfc/namespaceissues

2008-10-17 Thread Cristian Rodríguez
stef-com escribió: > Hi > My vote is option 1 please. "use ::: as separator between namespace name > and element" Ok, but please dont send your post with a "reading confirmation request"... Thank you, -- "A computer is like an Old Testament god, with a lot

Re: [PHP-DEV] segfault after an "invalid read of size 8"

2008-10-15 Thread Cristian Rodríguez
th a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] segfault after an "invalid read of size 8"

2008-10-11 Thread Cristian Rodríguez
Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] License for Windows binaries

2008-10-09 Thread Cristian Rodríguez
obably need a lawyer anyway. -- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] OpenSSL random pseudo bytes

2008-09-25 Thread Cristian Rodríguez
Scott MacVicar escribió: > If you don't care don't pass a parameter. ohh.. right, I misinterpreted it .. sorry ;) -- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX

Re: [PHP-DEV] OpenSSL random pseudo bytes

2008-09-25 Thread Cristian Rodríguez
rgument by value instead of by reference, valid code like causes a Fatal error: Only variables can be passed by reference... -- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Pro

Re: [PHP-DEV] Adding pecl/http to core

2008-09-22 Thread Cristian Rodríguez
ul addition in years. -- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] Howto build statically linked PHP CGI (without shared libs)

2008-09-11 Thread Cristian Rodríguez
-- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] Howto build statically linked PHP CGI (without shared libs)

2008-09-10 Thread Cristian Rodríguez
anks!! even if you manage to link all libraries statically, you will end with a huge, memory hungry and hard to debug php binary that anyways require shared libc at runtime ;-P -- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform

Re: [PHP-DEV] remove x-powered-by from php 5.2.3 cgi module

2008-09-08 Thread Cristian Rodríguez
-- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] __call() magic method

2008-08-30 Thread Cristian Rodríguez
Diogo Neves escribió: > Hi all, > > I'm emailling to ask why __call isn't called when you call a private > method from outside of function... Please provide example code ;-) -- "A computer is like an Old Testament god, with a lot of rules and no mercy. "

Re: [PHP-DEV] [Fwd: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_strtod.c]

2008-07-28 Thread Cristian Rodríguez
uter is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_3) / zend_execute.c zend_vm_def.h zend_vm_execute.h

2008-07-26 Thread Cristian Rodríguez
ot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] Magic method visibility in PHP 5.3+

2008-07-03 Thread Cristian Rodríguez
Daniel Convissor escribió: Because that's what the manual says it should do. Right, however I disagree with the fact it is a warning, it should be a fatal error IMHO. -- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríg

Re: [PHP-DEV] Re: Using Network functions.

2008-06-26 Thread Cristian Rodríguez
ust fine. -- "Perhaps, my biggest pet peeve pertaining to safe_mode is that it is not really safe, merely offering an illusion of safety that does not stand to closer examination" - Ilia on PHP safe_mode Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Rese

Re: [PHP-DEV] cleaning up the functions - any volunteers?

2008-06-25 Thread Cristian Rodríguez
automate that - it'd be awesome, but I don't have very high hopes on that. :) The attached patch may also help both core and PECL extensions, emiting a deprecation compile warning when those functions are used. ps: you have to add the attribute to all deprecated functions ;-) -- Cristian

Re: [PHP-DEV] Drop ext/mhash and add an emulation layer in ext/hash (5.3+), call for help

2008-06-02 Thread Cristian Rodríguez
f we train ourselves to think about programs without thinking of them as pieces of executable code.” - Edsger W. Dijkstra Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-19 Thread Cristian Rodríguez
table code.” - Edsger W. Dijkstra Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] Curl POST emalloc leak?

2008-05-18 Thread Cristian Rodríguez
POST 128552 POST 129168 POST 129768 POST 130352 POST 130920 when I request for $real_usage the results are constant.. -- "Progress is possible only if we train ourselves to think about programs without thinking of them as pieces of executable code.” - Edsger W. Dijkstra Cristian Rodríg

Re: [PHP-DEV] objection to enabling phar for testing in 5.3?

2008-05-14 Thread Cristian Rodríguez
tested at all.. +1 although I dont think we need phar in the core, but something more useful like pecl_http or fileinfo instead. -- "Progress is possible only if we train ourselves to think about programs without thinking of them as pieces of executable code.” - Edsger W. Dijkstra Cri

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c zend_compile.c /tests ns_063.phpt

2008-05-05 Thread Cristian Rodríguez
as pieces of executable code.” - Edsger W. Dijkstra Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] Float comparison

2008-05-02 Thread Cristian Rodríguez
ourselves to think about programs without thinking of them as pieces of executable code.” - Edsger W. Dijkstra Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] Return type hints

2008-04-06 Thread Cristian Rodríguez
.” – Edsger Dijkstra Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ signature.asc Description: OpenPGP digital signature