Re: [PHP-DEV] Is really no one interested?

2005-10-31 Thread Christian Stocker
On 1.11.2005 8:48 Uhr, Marian Kostadinov wrote: > Who says that I have a well-formed DTD? DTD is not necessary in many > cases. I will illustrate with example why DOM is too "complex" ... > compared to SimpleXML. > > //These are my 2 XML documents. No DTD - just a simple xml structure. > $xml1

Re: [PHP-DEV] Is really no one interested?

2005-10-31 Thread Marian Kostadinov
Who says that I have a well-formed DTD? DTD is not necessary in many cases. I will illustrate with example why DOM is too "complex" ... compared to SimpleXML. hi1'; $xml2 = 'hi2'; $sxe1 = new SimpleXMLElement ($xml1); $sxe2 = new SimpleXMLElement ($xml2); //Easy access to a node. It's great! ech

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.cphp-src NEWS

2005-10-31 Thread Sebastian Bergmann
Dmitry Stogov schrieb: > This should solve the problem. Okay, I reverted the patch for now and will {think about|work on} this. -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 -- PHP Interna

RE: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.cphp-src NEWS

2005-10-31 Thread Dmitry Stogov
Hmm, this is an idea. (I don't know yet if it good or bad) Current problem occurs because the same debug_backtrace is called during exception creation. Probably we can disable storing of "object" in case of backtrace for exception. This should solve the problem. Thanks. Dmitry. > -Original Me

Re: [PHP-DEV] Is really no one interested?

2005-10-31 Thread Petar Nedyalkov
On Monday 31 October 2005 11:27, Marian Kostadinov wrote: > > SimpleXML is meant to be simple and the desicion was made to keep its > > API short. Use DOM if you want those more advanced features (there's > > dom_import_simplexml() and simplexml_import_dom() for easy and fast > > switching between

[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c php-src NEWS

2005-10-31 Thread Sebastian Bergmann
Dmitry Stogov schrieb: > Yes. But with Sebastian's patch object is stored in bactrace. > So refcount is more then 1 and we cannot simple destroy it. Would it help to move the functionality I need from debug_backtrace() into a new function or make it optional in debug_backtrace()? -- Sebastian

[PHP-DEV] Question on return_value

2005-10-31 Thread Bob Silva
Hi, I have an internal function defined that returns an array zval: zval *pow_zstring_internal_split(Z_STRVAL_P(ivalue), separator, count, 0 TSRMLS_DC); When I call it like this, return_value is NULL in userland. return_value = pow_zstring_internal_split(Z_STRVAL_P(ivalue), sepa

Re: [PHP-DEV] Access raw buffer (for binary data)

2005-10-31 Thread Marco Bambini
Thanks a lot Rasmus, I have just (wrongly) assumed that the convert_to_string function tries to search for the 0 termination character. Thanks, Marco Bambini On Nov 1, 2005, at 1:35 AM, Rasmus Lerdorf wrote: Marco Bambini wrote: I am developing a PHP plugin using PHP 4.4 SDK (not 5) and I

Re: [PHP-DEV] Access raw buffer (for binary data)

2005-10-31 Thread Rasmus Lerdorf
Marco Bambini wrote: I am developing a PHP plugin using PHP 4.4 SDK (not 5) and I need to access a parameter as a raw char * pointer instead of a string or any other C type. Until now to access parameters I am using the zend_get_parameters_ex routine and then the various convert_to_something ro

[PHP-DEV] Access raw buffer (for binary data)

2005-10-31 Thread Marco Bambini
I am developing a PHP plugin using PHP 4.4 SDK (not 5) and I need to access a parameter as a raw char * pointer instead of a string or any other C type. Until now to access parameters I am using the zend_get_parameters_ex routine and then the various convert_to_something routines. I think I

[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c php-src NEWS

2005-10-31 Thread Sebastian Bergmann
Dmitry Stogov schrieb: > Of course we can. :) Go ahead and commit it if the current implementation breaks things. > But probably $this can be really useful in debug backtrace. I just hope that this feature can be preserved, whether or not based upon my 5-minute-patch is secondary ;-) -- Seb

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-31 Thread Sebastian
What about a similar construct for checking truth? eg, $foo = first_true($bar, $baz, $bang); returns the value of the first variable that passes the if(isset($var) && !empty($var)) test. On 10/31/05, Ford, Mike <[EMAIL PROTECTED]> wrote: > On 29 October 2005 22:56, Greg Beaver wrote: > > > For

[PHP-DEV] PHP 4.4.1 has been released

2005-10-31 Thread Derick Rethans
Hello! PHP 4.4.1 is now available for download [1]. This version is a maintenance release, that contains numerous bug fixes, including a number of security fixes related to the overwriting of the GLOBALS array. All users of PHP 4.3 and 4.4 are encouraged to upgrade to this version. The full l

RE: [PHP-DEV] what happened to that new isset() like language

2005-10-31 Thread Ford, Mike
On 29 October 2005 22:56, Greg Beaver wrote: > For an operation as complicated as "use the first variable > that exists" > I would be most comfortable with: > > $d = first-existing: $a, $b, $c; That's a horrible syntax, but a fantastic name for a language construct to do the job. Even better m

Re: [PHP-DEV] Is really no one interested?

2005-10-31 Thread Marian Kostadinov
> SimpleXML is meant to be simple and the desicion was made to keep its > API short. Use DOM if you want those more advanced features (there's > dom_import_simplexml() and simplexml_import_dom() for easy and fast > switching between those 2) > > chregu SimpleXML is simple and that is great. But su

Re: [PHP-DEV] Is really no one interested?

2005-10-31 Thread Christian Stocker
On 31.10.2005 10:16 Uhr, Marian Kostadinov wrote: > This is related to feature request 34839. > > [12 Oct 7:58pm CEST] stochnagara at hotmail dot com > > Description: > > The class SimpleXMLElement is wonderful and provides a great > functionality. > But I need to extend it and I d

[PHP-DEV] Is really no one interested?

2005-10-31 Thread Marian Kostadinov
This is related to feature request 34839. [12 Oct 7:58pm CEST] stochnagara at hotmail dot com Description: The class SimpleXMLElement is wonderful and provides a great functionality. But I need to extend it and I don't have a way to determine whether a given SimpleXMLElement is an at

[PHP-DEV] PHP 5 Bug Summary Report

2005-10-31 Thread internals
PHP 5 Bug Database summary - http://bugs.php.net Num Status Summary (371 total including feature requests) ===[*General Issues]== 26771 Suspended register_tick_funtions crash under threaded webservers ==

[PHP-DEV] PHP 4 Bug Summary Report

2005-10-31 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (638 total including feature requests) ===[*General Issues]== 25665 Assigned var_dump/print_r hang on NaN and INF ===[Apac