Re: [PHP-DEV] Compile error in xml-rpc (HEAD)

2003-01-09 Thread Derick Rethans
Hi,

I patched my local tree, am now testing and if it works I'll commit.

Derick


On Fri, 10 Jan 2003, Jan Schneider wrote:

> Zitat von Magnus Määttä <[EMAIL PROTECTED]>:
> 
> > Hi!
> > 
> > gcc -I/opt/DEV/php/php4/ext/xmlrpc/libxmlrpc -DVERSION=0.50 -Iext/xmlrpc/
> > -I/opt/DEV/php/php4/ext/xmlrpc/ -DPHP_ATOM_INC
> > -I/opt/DEV/php/php4/include -I/opt/DEV/php/php4/main -I/opt/DEV/php/php4
> > -I/opt/DEV/php/php4/Zend -I/usr/include/libxml2 -I/usr/X11R6/include
> > -I/usr/include/freetype2 -I/usr/include/imap -I/usr//include/mysql
> > -I/usr/include/pspell -I/usr/qt/3/include -I/usr//include 
> > -I/opt/DEV/php/php4/TSRM  -g -Wall  -c
> > /opt/DEV/php/php4/ext/xmlrpc/xmlrpc-epi-php.c -o
> > ext/xmlrpc/xmlrpc-epi-php.o  && echo > ext/xmlrpc/xmlrpc-epi-php.lo
> > /opt/DEV/php/php4/ext/xmlrpc/xmlrpc-epi-php.c: In function
> > `set_zval_xmlrpc_type':
> > /opt/DEV/php/php4/ext/xmlrpc/xmlrpc-epi-php.c:1348: structure has no
> > member named `properties'
> > /opt/DEV/php/php4/ext/xmlrpc/xmlrpc-epi-php.c:1349: structure has no
> > member named `properties'
> > make: *** [ext/xmlrpc/xmlrpc-epi-php.lo] Error 1
> > 
> > config.nice
> > #! /bin/sh
> > #
> > # Created by configure
> > 
> > './configure' \
> > '--disable-all' \
> > '--prefix=/usr/local/www/php4cli' \
> > '--enable-debug' \
> > '--enable-sysvshm' \
> > '--enable-aggregate' \
> > '--enable-xslt' \
> > '--enable-bcmath' \
> > '--enable-calendar' \
> > '--enable-dbase' \
> > '--enable-dio' \
> > '--enable-dbx' \
> > '--enable-exif' \
> > '--enable-filepro' \
> > '--enable-ftp' \
> > '--enable-gd-native-ttf' \
> > '--enable-sockets' \
> > '--enable-yp' \
> > '--enable-enable-trans-sid' \
> > '--enable-pcntl' \
> > '--enable-inline-optimization' \
> > '--enable-cli' \
> > '--enable-rpath' \
> > '--enable-short-tags' \
> > '--enable-ipv6' \
> > '--enable-ctype' \
> > '--enable-overload' \
> > '--enable-posix' \
> > '--enable-session' \
> > '--enable-tokenizer' \
> > '--enable-xml' \
> > '--enable-libtool-lock' \
> > '--with-xslt-sablot=/usr/' \
> > '--with-expat-dir=/usr' \
> > '--with-xmlrpc' \
> > '--with-ming=/usr' \
> > '--with-swf=/usr' \
> > '--with-dom=/usr' \
> > '--with-qtdom' \
> > '--with-recode' \
> > '--with-mysql=/usr/' \
> > '--with-openssl' \
> > '--with-zlib-dir=/usr' \
> > '--with-jpeg-dir' \
> > '--with-tiff-dir' \
> > '--with-db' \
> > '--with-gdbm' \
> > '--with-dom' \
> > '--with-dom-xslt' \
> > '--with-gd' \
> > '--with-pdflib' \
> > '--with-png-dir' \
> > '--with-xpm-dir' \
> > '--with-freetype-dir' \
> > '--with-ttf' \
> > '--with-t1lib' \
> > '--with-gettext' \
> > '--with-gmp' \
> > '--with-ldap' \
> > '--with-mcrypt' \
> > '--with-mhash' \
> > '--with-pspell' \
> > '--with-readline' \
> > '--with-bz2' \
> > '--with-snmp' \
> > '--with-curl' \
> > '--with-imap' \
> > '--with-imap-ssl' \
> > '--with-pcre-regex' \
> > '--with-pear' \
> > "$@"
> 
> I get this error too, compiling latest CVS HEAD with ZE2.
> 
> The attached patch fixed it for me.
> 
> Jan.
> 
> --
> http://www.horde.org - The Horde Project
> http://www.ammma.de - discover your knowledge
> http://www.tip4all.de - Deine private Tippgemeinschaft

-- 

-
 Derick Rethans http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
-


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] patch for libgd/gd.c (gdImageRotate90 x,y transposed)

2003-01-09 Thread Pierre-Alain Joye
On Thu, 9 Jan 2003 17:22:02 -0800
"Leon Atkinson" <[EMAIL PROTECTED]> wrote:

> This function isn't making the new image with the right dimensions. 

Thank's :-)

pierre

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: [BUGFIX 21089/21328] MSSQL not returning values of SP output parameters in 4.3.0

2003-01-09 Thread Michael Sisolak
This issue has now been fixed in CVS by Frank Kromann.

Michael Sisolak
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Compile error in xml-rpc (HEAD)

2003-01-09 Thread Jan Schneider
Zitat von Magnus Määttä <[EMAIL PROTECTED]>:

> Hi!
> 
> gcc -I/opt/DEV/php/php4/ext/xmlrpc/libxmlrpc -DVERSION=0.50 -Iext/xmlrpc/
> -I/opt/DEV/php/php4/ext/xmlrpc/ -DPHP_ATOM_INC
> -I/opt/DEV/php/php4/include -I/opt/DEV/php/php4/main -I/opt/DEV/php/php4
> -I/opt/DEV/php/php4/Zend -I/usr/include/libxml2 -I/usr/X11R6/include
> -I/usr/include/freetype2 -I/usr/include/imap -I/usr//include/mysql
> -I/usr/include/pspell -I/usr/qt/3/include -I/usr//include 
> -I/opt/DEV/php/php4/TSRM  -g -Wall  -c
> /opt/DEV/php/php4/ext/xmlrpc/xmlrpc-epi-php.c -o
> ext/xmlrpc/xmlrpc-epi-php.o  && echo > ext/xmlrpc/xmlrpc-epi-php.lo
> /opt/DEV/php/php4/ext/xmlrpc/xmlrpc-epi-php.c: In function
> `set_zval_xmlrpc_type':
> /opt/DEV/php/php4/ext/xmlrpc/xmlrpc-epi-php.c:1348: structure has no
> member named `properties'
> /opt/DEV/php/php4/ext/xmlrpc/xmlrpc-epi-php.c:1349: structure has no
> member named `properties'
> make: *** [ext/xmlrpc/xmlrpc-epi-php.lo] Error 1
> 
> config.nice
> #! /bin/sh
> #
> # Created by configure
> 
> './configure' \
> '--disable-all' \
> '--prefix=/usr/local/www/php4cli' \
> '--enable-debug' \
> '--enable-sysvshm' \
> '--enable-aggregate' \
> '--enable-xslt' \
> '--enable-bcmath' \
> '--enable-calendar' \
> '--enable-dbase' \
> '--enable-dio' \
> '--enable-dbx' \
> '--enable-exif' \
> '--enable-filepro' \
> '--enable-ftp' \
> '--enable-gd-native-ttf' \
> '--enable-sockets' \
> '--enable-yp' \
> '--enable-enable-trans-sid' \
> '--enable-pcntl' \
> '--enable-inline-optimization' \
> '--enable-cli' \
> '--enable-rpath' \
> '--enable-short-tags' \
> '--enable-ipv6' \
> '--enable-ctype' \
> '--enable-overload' \
> '--enable-posix' \
> '--enable-session' \
> '--enable-tokenizer' \
> '--enable-xml' \
> '--enable-libtool-lock' \
> '--with-xslt-sablot=/usr/' \
> '--with-expat-dir=/usr' \
> '--with-xmlrpc' \
> '--with-ming=/usr' \
> '--with-swf=/usr' \
> '--with-dom=/usr' \
> '--with-qtdom' \
> '--with-recode' \
> '--with-mysql=/usr/' \
> '--with-openssl' \
> '--with-zlib-dir=/usr' \
> '--with-jpeg-dir' \
> '--with-tiff-dir' \
> '--with-db' \
> '--with-gdbm' \
> '--with-dom' \
> '--with-dom-xslt' \
> '--with-gd' \
> '--with-pdflib' \
> '--with-png-dir' \
> '--with-xpm-dir' \
> '--with-freetype-dir' \
> '--with-ttf' \
> '--with-t1lib' \
> '--with-gettext' \
> '--with-gmp' \
> '--with-ldap' \
> '--with-mcrypt' \
> '--with-mhash' \
> '--with-pspell' \
> '--with-readline' \
> '--with-bz2' \
> '--with-snmp' \
> '--with-curl' \
> '--with-imap' \
> '--with-imap-ssl' \
> '--with-pcre-regex' \
> '--with-pear' \
> "$@"

I get this error too, compiling latest CVS HEAD with ZE2.

The attached patch fixed it for me.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
Index: ext/xmlrpc/xmlrpc-epi-php.c
===
RCS file: /repository/php4/ext/xmlrpc/xmlrpc-epi-php.c,v
retrieving revision 1.26
diff -u -r1.26 xmlrpc-epi-php.c
--- ext/xmlrpc/xmlrpc-epi-php.c 31 Dec 2002 16:08:09 -  1.26
+++ ext/xmlrpc/xmlrpc-epi-php.c 10 Jan 2003 02:54:18 -
@@ -1345,8 +1345,8 @@
   ztimestamp->value.lval = timestamp;
 
   convert_to_object(value);
-  if(SUCCESS == zend_hash_update(value->value.obj.properties, 
OBJECT_TYPE_ATTR, sizeof(OBJECT_TYPE_ATTR), (void *) &type, sizeof(zval *), NULL)) {
- bSuccess = zend_hash_update(value->value.obj.properties, 
OBJECT_VALUE_TS_ATTR, sizeof(OBJECT_VALUE_TS_ATTR), (void *) &ztimestamp, sizeof(zval 
*), NULL);
+  if(SUCCESS == zend_hash_update(Z_OBJPROP_P(value), 
+OBJECT_TYPE_ATTR, sizeof(OBJECT_TYPE_ATTR), (void *) &type, sizeof(zval *), NULL)) {
+ bSuccess = zend_hash_update(Z_OBJPROP_P(value), 
+OBJECT_VALUE_TS_ATTR, sizeof(OBJECT_VALUE_TS_ATTR), (void *) &ztimestamp, sizeof(zval 
+*), NULL);
   }
}
XMLRPC_CleanupValue(v);

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DEV] CVS Account Request: ce1998

2003-01-09 Thread e9e9
ghg

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] patch for libgd/gd.c (gdImageRotate90 x,y transposed)

2003-01-09 Thread Leon Atkinson
This function isn't making the new image with the right dimensions. 

# cvs diff ext/gd/libgd/gd.c
Index: ext/gd/libgd/gd.c
===
RCS file: /repository/php4/ext/gd/libgd/gd.c,v
retrieving revision 1.39
diff -u -r1.39 gd.c
--- ext/gd/libgd/gd.c   18 Dec 2002 21:13:21 -  1.39
+++ ext/gd/libgd/gd.c   10 Jan 2003 01:02:06 -
@@ -2492,10 +2492,10 @@
FuncPtr f;

if (src->trueColor) {
-   dst = gdImageCreateTrueColor ( src->sx,src->sy);
+   dst = gdImageCreateTrueColor (src->sy, src->sx);
f = gdImageGetTrueColorPixel;
} else {
-   dst = gdImageCreate (src->sx, src->sy);
+   dst = gdImageCreate (src->sy, src->sx);
f = gdImageGetPixel;
}



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: Stream filters, converters and i18n.

2003-01-09 Thread Wez Furlong

Derick has requested the ability to be able to specify an array
parameter instead of/as well as a string.
What I plan to implement is an additional (optional) filter operation
that is given an opportunity to pre-process the zval and make it
available to the underlying implementation.

> stream_filter_append($fp, "convert.quoted-printable-encode/base64-decode",
>   "base64-decode.ignore-eof=1,quoted-printable-encode.soft-line-break=1");

> stream_filter_append($fp, "convert",
>   "base64-encode:flush-on-close,forbid-seek/base64-decode:forbid-seek");
  ^^^
Streams API will spot a filtered stream and disallow seeking. (Except
for the emulated forward seek using read).

> Now what do you think of this? I need a decision.

The idea is that the filter name identifies a specific filter.
The parameters are used to tune specific aspects of the filter; such as
compression level, encryption keys and so-on.
So the former option is preferred...

As for the problem of choosing filters for the read/write streams, I
plan to introduce two separate read/write filter chains in PHP 5 and
allow the user to decide which filters to apply.

This needs to be comfortable for the user to pick and choose filters, so
it might require a modification to the user-space API, or perhaps the
introduction of a new function (latter is preferred).

> By the way, I find the converter is quite portable and also important
> for i18n stuff, I'd like to make the converter independent to
> the filter code. Any comments on this?

Having a core conversion system is a big plus (and will solve some of
the depenencies on mbstring issues we have for other extensions).

If the conversion system is abstracted nicely, it can provide a core set of
converters and allow other extensions (such as iconv, recode, mbstring)
to register other codesets (perhaps using a wildcard or some dynamic
query mechanism such as that used in the filters API) when they are
loaded at runtime.

If you do it this way, you get a +100 from me :-)

--Wez.


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] What headers/libs does Win32 Snaps build use?

2003-01-09 Thread Christoph Grottolo
Edin,

I don't know much about this, but maybe the libraries could be distributed
via a cvs directory (e.g win32libs). Like this there would be no need for
additional (and probably soon outdated) HOWTO files (and it would make
windows builds much easier for not-so-experienced users as I am).

Christoph


Edin Kadribasic wrote:
> Yes, Steph is right, the set of libraries used on the snaps machine
> is ~70MB (uncompressed) and I don't think it's practical to update
> win32build.zip to include them all. And this 70 MB does not include
> files needed for building ext/infromix, ext/interbase and sapi/pi3web.
>
> Edin
>
> - Original Message -
> From: "Steph" <[EMAIL PROTECTED]>
> To: "Christoph Grottolo" <[EMAIL PROTECTED]>; "Michael Sisolak"
> <[EMAIL PROTECTED]>
> Cc: "PHP DEV" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 07, 2003 8:44 PM
> Subject: Re: [PHP-DEV] What headers/libs does Win32 Snaps build use?
>
>
>> There are a lot of them - that's likely to be the biggest issue.
>> Nearly 20 megs of libraries (and this from some months ago).
>>
>> This is really Edin's territory...
>>
>> - Original Message -
>> From: "Christoph Grottolo" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Tuesday, January 07, 2003 7:31 PM
>> Subject: Re: [PHP-DEV] What headers/libs does Win32 Snaps build use?
>>
>>
 Basically what I'm talking about is updating win32build.zip so that
>> it
 has all the current libraries that are really used to do a PHP
 build on Win32.  Is there a practical or licensing reason why that
>> couldn't
 be done?  Would it be a lot more work than just packaging up a few
 directories on the snaps machine?

 Michael Sisolak
>>>
>>> +1 on this - if my vote counts
>>>
>>> Christoph
>>>
>>>
>>>
>>> --
>>> PHP Development Mailing List 
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>
>>
>> --
>> PHP Development Mailing List 
>> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Stream filters, converters and i18n.

2003-01-09 Thread Moriyoshi Koizumi
Hi,

I renewed the base64 filter yesterday to use newly implemented
converter facility. This enables you to apply arbitrary filter
operations to a writer and a reader respectively.

But this also makes some complexity for users. How can we select
these operations? Currently there seems to be just two options:
either by filter name or by parameter.

As for the first option, according to Wez's explanation in his code, 

> /* We allow very simple pattern matching for filter factories:
> * if "charset.utf-8/sjis" is requested, we search first for an exact
> * match. If that fails, we try "charset.*".
> * This means that we don't need to clog up the hashtable with a zillion
> * charsets (for example) but still be able to provide them all as filters */

I can make one generic filter factory and name it as "converter.*".

In this case, you could choose operations by the filter name like
"converter.base64-encode/base64-decode" and you could pass parameters
to each converter(filter) via the third optional parameter of
stream_filter_append() or stream_filter_prepend(). For example,

stream_filter_append($fp, "convert.quoted-printable-encode/base64-decode",
"base64-decode.ignore-eof=1,quoted-printable-encode.soft-line-break=1");

where the first part in the filter name specifies the output filter and
the second part specifies the input filter.

Otherwise I might set up a factory named "convert" which takes at least
two parameters delimited by "/". You could specify the operation like

stream_filter_append($fp, "convert",
"base64-encode:flush-on-close,forbid-seek/base64-decode:forbid-seek");

Now what do you think of this? I need a decision.

By the way, I find the converter is quite portable and also important
for i18n stuff, I'd like to make the converter independent to
the filter code. Any comments on this?

Moriyoshi


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Terminal text objects (PHP CDK NCURSES)

2003-01-09 Thread Dave Mertens
On Wed, Jan 08, 2003 at 03:55:51AM +, Nikolai Vladychevski wrote:
> I want to share the code (php-extension) I have included into php-4.2.2 to 
> support CDK widgets 
> (http://gd.tuwien.ac.at/hci/cdk/?file=cdk.tar.gz&type=listing) to enable 
> PHP to use text based "GUI" in terminal environment. 
> 
> CDK supports:
> -Alphalist (list with alphanumeric search)
> -Calendar dialog box
> -Dialog
> -Entry field with type masking
> -Scale field
> -2 dimension graphics (text mode)
> -Histogram display
> -Item list field
> -Label
> -Marque (text box in movement)
> -Matrix field
> -Menu
> -Scroll
> -Selection field
> -Slider field
> -Radio button
> -Template field 
> 
+10 ;-)

This extension would allow me to drop my own text-base objects using the php ncursus 
extension. But has has some bugs which are hard to fix.
So yes, please commit. I guess you should put it into PECL..


-- 
With best regards,

Dave Mertens - Senior Development Manager
[EMAIL PROTECTED]

Innovative Solutions in Media
Schiekade 101
3033 BG  Rotterdam, Netherlands
T +31-10-2436060
F +31-10-2436066 
http://www.ism.nl

Quality Solutions - Reliable Partner

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] bcmath, calendar, ftp, wddx on Win32

2003-01-09 Thread Sebastian Bergmann
  For as long as I can remember, the bcmath, calendar, ftp and wddx
  extensions are enabled by default on Win32.

  But why? I mean, they are not enabled by default on *NIX, so why the
  inconsistency?

  Just curious,
Sebastian

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Can't build PHP_4_3+ZE1 on Win32

2003-01-09 Thread Sebastian Bergmann
image.obj: error LNK2001: Unresolved external symbol _uncompress
zlib.obj: error LNK2001: Unresolved external symbol _uncompress
zlib.obj: error LNK2001: Unresolved external symbol _zlibVersion
zlib.obj: error LNK2001: Unresolved external symbol _zError
zlib.obj: error LNK2001: Unresolved external symbol _compress
zlib.obj: error LNK2001: Unresolved external symbol _compress2
zlib.obj: error LNK2001: Unresolved external symbol _deflateEnd
zlib.obj: error LNK2001: Unresolved external symbol _deflate
zlib.obj: error LNK2001: Unresolved external symbol _deflateInit2_
zlib.obj: error LNK2001: Unresolved external symbol _inflateEnd
zlib.obj: error LNK2001: Unresolved external symbol _inflate
zlib.obj: error LNK2001: Unresolved external symbol _inflateInit2_
zlib.obj: error LNK2001: Unresolved external symbol _crc32
zlib.obj: error LNK2001: Unresolved external symbol _deflateInit_
zlib_fopen_wrapper.obj: error LNK2001:
Unresolved external symbol _gzeof
zlib_fopen_wrapper.obj: error LNK2001:
Unresolved external symbol _gzread
zlib_fopen_wrapper.obj: error LNK2001:
Unresolved external symbol _gzwrite
zlib_fopen_wrapper.obj: error LNK2001:
Unresolved external symbol _gztell
zlib_fopen_wrapper.obj: error LNK2001:
Unresolved external symbol _gzseek
zlib_fopen_wrapper.obj: error LNK2001:
Unresolved external symbol _gzclose
zlib_fopen_wrapper.obj: error LNK2001:
Unresolved external symbol _gzflush
zlib_fopen_wrapper.obj: error LNK2001:
Unresolved external symbol _gzdopen

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] xml xinclude

2003-01-09 Thread Pawel
At 03:44 PM 1/8/2003 +0100, you wrote:

At 15:35 08.01.2003, Pawel wrote:

Hello,

libxml (tested with 2.4.30) creates these additional nodes when parsing
documents with xincludes: XML_XINCLUDE_START and XML_XINCLUDE_END.
PHP has no support for these nodes and chokes when it encounters them,
therefore walking the xml tree after issuing $doc->xinclude() fails.

The only work-around I could come up with is:
$doc = domxml_open_mem($doc->dump_mem())
which gets rid of the XML_XINCLUDE_START and XML_XINCLUDE_END nodes

The problem comes up when you have entities in the xincluded document,
which don't get substituted.
This short patch substitutes any entity references you might have in the
xincluded document.


Why not check for XML_XINCLUDE_START and XML_XINCLUDE_END or
the libxml version in configure and make the necessary changes to the .c
file?

marcus


Hello,

Attached is my attempt at adding support for
XML_XINCLUDE_START and XML_XINCLUDE_END to php.
This removes the need for previously mentioned
$doc = domxml_open_mem($doc->dump_mem())

xmlNodeGetContent() seems to return null for xincluded nodes with entity
references (libxml bug ?), therefore I left my first patch which
substitutes entity references in the xincluded document.

Pawel 
--- ext/domxml/php_domxml.c 2003-01-09 08:50:33.0 -0500
+++ ext/domxml/php_domxml.c.new 2003-01-09 08:50:27.0 -0500
@@ -1121,6 +1121,8 @@
 
switch (Z_TYPE_P(obj)) {
 
+   case XML_XINCLUDE_START:
+   case XML_XINCLUDE_END:
case XML_ELEMENT_NODE:
{
xmlNodePtr nodep = obj;
@@ -1585,6 +1587,8 @@
REGISTER_LONG_CONSTANT("XML_ATTRIBUTE_DECL_NODE",   XML_ATTRIBUTE_DECL,
 CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("XML_ENTITY_DECL_NODE",  XML_ENTITY_DECL,   
 CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("XML_NAMESPACE_DECL_NODE",   XML_NAMESPACE_DECL,
 CONST_CS | CONST_PERSISTENT);
+   REGISTER_LONG_CONSTANT("XML_XINCLUDE_START",XML_XINCLUDE_START,
+ CONST_CS | CONST_PERSISTENT);
+   REGISTER_LONG_CONSTANT("XML_XINCLUDE_END",  
+XML_XINCLUDE_END,   CONST_CS | CONST_PERSISTENT);
 #ifdef XML_GLOBAL_NAMESPACE
REGISTER_LONG_CONSTANT("XML_GLOBAL_NAMESPACE",  XML_GLOBAL_NAMESPACE,  
 CONST_CS | CONST_PERSISTENT);
 #endif
@@ -1889,6 +1893,14 @@
str = "#document-fragment";
break;
 
+   case XML_XINCLUDE_START:
+   str = "#xinclude-start";
+   break;
+
+   case XML_XINCLUDE_END:
+   str = "#xinclude-end";
+   break;
+
default:
str = NULL;
break;
@@ -4556,6 +4568,9 @@
zend_hash_update(Z_OBJPROP_P(value), "children", 
sizeof("children"), (void *) &children, sizeof(zval *), NULL);
}
 */ add_property_string(pattr, "name", (char *) (attr->name), 1);
+
+/* fprintf(stderr, "setting attribute value to %s\n", xmlNodeGetContent( 
+(xmlNodePtr) attr));
+   NOTE: xmlNodeGetContent((xmlNodePtr) attr) returns a null for 
+xincluded nodes with refrences */
add_property_string(pattr, "value", xmlNodeGetContent((xmlNodePtr) 
attr), 1);
zend_hash_next_index_insert(Z_ARRVAL_PP(attributes), &pattr, 
sizeof(zval *), NULL);
attr = attr->next;
@@ -4953,12 +4968,15 @@
 {
zval *id;
xmlDoc *docp;
-   int err; 
+   int err;
+   int prevSubstValue; 

DOMXML_PARAM_NONE(docp, id, le_domxmldocp);

+   prevSubstValue = xmlSubstituteEntitiesDefault (1);
err = xmlXIncludeProcess (docp);
-   
+   xmlSubstituteEntitiesDefault (prevSubstValue);
+
if (err) {
RETVAL_LONG(err);
} else {


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP-DEV] Overloading object methods

2003-01-09 Thread Derick Rethans
On Thu, 9 Jan 2003, John Coggeshall wrote:

> 
> This list is for the development _of_ PHP not _with_ PHP, please direct
> future questions there
> 
> However, I don't understand the question you are asking... If you have
   ^^^
Then don't reply?

Derick

-- 

-
 Derick Rethans http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
-


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DEV] Overloading object methods

2003-01-09 Thread John Coggeshall
>I'm asking how to call parent::method() from zend engine (C), 
>not from php. 
>Are questions regarding the C zend_engine API welcome?

Ah. My appologies then -- I misunderstood your question. Yes, questions
regarding development _of_ PHP/Zend Engine are welcome here :) At first
(and second) read it sounded as if you were asking about how to code
something _using_ PHP. 

I haven't played with objects much in the API, so I don't know the
answer to your question off the top of my head. I'm sure there's someone
here who does however :) 

John


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Overloading object methods

2003-01-09 Thread Stefano Corsi
Alle 09:40, giovedì 9 gennaio 2003, John Coggeshall ha scritto:
> This list is for the development _of_ PHP not _with_ PHP, please direct
> future questions there
>
> However, I don't understand the question you are asking... If you have
> this:
>
> Class A {
>
>   function foo() {
>
>   echo "I am function foo";
>   }
> }

Hello, I'm also the function foo. Pleased to meet you.

I'm asking how to call parent::method() from zend engine (C), not from php. 
Are questions regarding the C zend_engine API welcome?

Thanks,
Stefano

--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DEV] Overloading object methods

2003-01-09 Thread John Coggeshall

This list is for the development _of_ PHP not _with_ PHP, please direct
future questions there

However, I don't understand the question you are asking... If you have
this:

Class A {

function foo() {

echo "I am function foo";
}
}

Class B extends A {

function foo() {
echo "I am the child function foo";
parent::foo();
}
}

$a = new B;
$a->foo();

It will output:

I am the child function foo
I am function foo

http://www.php.net/manual/en/keyword.parent.php

John


>-Original Message-
>From: Stefano Corsi [mailto:[EMAIL PROTECTED]] 
>Sent: Thursday, January 09, 2003 5:28 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP-DEV] Overloading object methods
>
>
>Does someone know how to call a parent's object method? Not contructor 
>(because that is easy) but a method with the same name.
>
>For example, if I have a method that is called pippo() and at 
>the end of the 
>method i want to call parent::pippo(), how could I do?
>
>I tried with call_user_function using  
>
>&(this_object->ce->parent->function_table)
>
>as the function table, but I don't know how to pass the 
>underlyig object.
>
>Thanks,
>   Stefano
>
>
>
>-- 
>PHP Development Mailing List 
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Terminal text objects (PHP CDK NCURSES)

2003-01-09 Thread Wez Furlong
This would be a nice thing to include in PECL (see http://pear.php.net).

--Wez.

On Wed, 8 Jan 2003, Nikolai Vladychevski wrote:

> Hello,
>
> I want to share the code (php-extension) I have included into php-4.2.2 to
> support CDK widgets
> (http://gd.tuwien.ac.at/hci/cdk/?file=cdk.tar.gz&type=listing) to enable PHP
> to use text based "GUI" in terminal environment.
>
> CDK supports:
>  -Alphalist (list with alphanumeric search)
>  -Calendar dialog box
>  -Dialog
>  -Entry field with type masking
>  -Scale field
>  -2 dimension graphics (text mode)
>  -Histogram display
>  -Item list field
>  -Label
>  -Marque (text box in movement)
>  -Matrix field
>  -Menu
>  -Scroll
>  -Selection field
>  -Slider field
>  -Radio button
>  -Template field


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] mailparse

2003-01-09 Thread Wez Furlong
We still haven't fully decided about how to document PECL extensions,
and there is talk of some kind of grand unified documentation system to
hold the PHP manual, PEAR/PECL manual and PHP Extension Authors manual.

However, everyone has precious little time for this, so things are
likely to stay as they are for a while.

At least you can read the docs ATM :)

--Wez.

On Wed, 8 Jan 2003, Morten Winther wrote:

> Hello,
>
> When you look up mailparse on php.net it doesn't say that this function is
> moved PEAR.
>
> Shouldn't this be corrected?
>
> http://www.php.net/manual/en/ref.mailparse.php
>
> --
> / morten
>
> "There are only 10 types of people in the world: Those who understand
> binary, and those who don't"
>
>
>
> --
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Overloading object methods

2003-01-09 Thread Stefano Corsi
Does someone know how to call a parent's object method? Not contructor 
(because that is easy) but a method with the same name.

For example, if I have a method that is called pippo() and at the end of the 
method i want to call parent::pippo(), how could I do?

I tried with call_user_function using  

&(this_object->ce->parent->function_table)

as the function table, but I don't know how to pass the underlyig object.

Thanks,
Stefano



--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] php 4.3.0 ext/oci8 -- OCI_SHARED patch

2003-01-09 Thread Thies C. Arntzen
On Tue, Jan 07, 2003 at 11:46:16AM -0500, Levi Dixon wrote:
> 
> I have tested it and it works for me.  As far as thread safety, all of OCI
> could suffer from thread safety problems, not just this feature.  If we want
> ext/oci8 to be thread safe, we should really pass the OCI_THREADED flag into
> OCIInitialize().  At first glance it seems that thread safety should be
> accounted for #ifdef ZTS.  Is this correct?  I can add it if required.

yes - but you only need to use OCI_THREADED if you want oci
to mutex around the use of statements and connections. as we
don't share statements or connections between threads (yet)
we don't need to do that (yet). plus i think it will be
slightly slower. (as you know threads are always slow;-)

re,
tc

-- 
Thies C. Arntzen   -   Looking for all sorts of freelance work  -   just ask..
  http://www.amazon.de/exec/obidos/wishlist/AB9DY62QWDSZ

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php