[PHP-DEV] no construct called

2003-02-22 Thread michel 'ziobudda' morelli
Hi, I have this code:

?php
error_reporting(E_ALL);

class esempio {
var $pubblica;
private $privata = Io sono privata;
var $protetta = Io sono protetta;

/*function esempio()
{
echo sono in esempio::esempio()br\n;
}
*/
function __construct()
{
echo sono in esempio::__construct()br\n;
$this-protetta = I'm protect;
}

function exe()
{
echo sono in exe()br\n;
echo $this-protetta;
}

}

class exe extends esempio {

function __construct()
{
echo sono in exe::__construct()br\n;
}

function exe()
{
echo sono in exe::exe()br\n;
}
function ex2()
{
echo sono in exe2()br\n;
echo \$protetta: .$this-protetta.br\n;
$this-exe();
}
}

$n = new exe;
$n-ex2();

?

This is the output:

sono in exe::exe()
sono in exe2()
$protetta: 
sono in exe::exe()

Why not __construct() of esempio class is called?

If I have two construct (__construct() and exe() ) is ok that exe() is
called and not __construct() (of class exe) ???

I'm using php5-cvs of 19 Feb 2003.

Tnx in advance.

-- 
michel 'ziobudda' morelli [EMAIL PROTECTED]


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



Re: [PHP-DEV] no construct called

2003-02-22 Thread michel 'ziobudda' morelli
Il sab, 2003-02-22 alle 14:57, michel 'ziobudda' morelli ha scritto:
 Hi, I have this code:

Hi again.
In my script I have noticed that if I write:

protected $protetta = Io sono protetta;

the function

function ex2()
{
echo sono in ex2()br\n;
echo \$Protetta: .$this-protetta.br\n;
$this-exe2();
}

works (it writes $Protetta: Io sono protetta), but if I write

var $protetta = Io sono protetta;

the same function write only $Prottetta:

I think that If I do not declare $protetta like protected it is
pubblic so it is usable from extend classess and other script. Why not
?

Here the new script:

?php
error_reporting(E_ALL);

class esempio {
var $pubblica;
private $privata = Io sono privata;
//var $protetta = Io sono protetta;
protected $protetta = Io sono protetta;


function esempio()
{
echo sono in esempio::esempio()br\n;
}

function __construct()
{
echo nel costruttore di Abr\n;
}

function exe2()
{
echo sono in exe2()br\n;
echo \$Prottetta: .$this-protetta.br\n;
}

function __destruct()
{
echo brio sono il distruttore di esempio;

}
}

class exe extends esempio {

function __construct()
{
echo sono in exe::__construct()br\n;
}

function exe()
{
echo sono in exe::exe()br\n;
}

function ex2()
{
echo sono in ex2()br\n;
echo \$Protetta: .$this-protetta.br\n;
$this-exe2();
}

function __destruct()
{
echo brio sono il distruttore;
}
}

$n = new exe;
$n-ex2();

?


 


-- 
michel 'ziobudda' morelli [EMAIL PROTECTED]


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



[PHP-DEV] Name of variable

2003-02-22 Thread Ivan Rodriguez


Hello, i need to get the name of the variables who passed in one
function, for example:


switch ((*struc)-type) {
case IS_BOOL:
fprintf(_dyn_log_file_fp, %sbool:%s\n, COMMON,
((*struc)-value.lval?true:false));
break;


With this i get the typo of variable, and what can i do to get the name
of variable??

Thx.


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



Re: [PHP-DEV] Name of variable

2003-02-22 Thread Andi Gutmans
You can't get the name of the variable. For what purpose do you need it?

Andi

At 03:45 PM 2/22/2003 +0100, Ivan Rodriguez wrote:


Hello, i need to get the name of the variables who passed in one
function, for example:
switch ((*struc)-type) {
case IS_BOOL:
fprintf(_dyn_log_file_fp, %sbool:%s\n, COMMON,
((*struc)-value.lval?true:false));
break;
With this i get the typo of variable, and what can i do to get the name
of variable?¿?
Thx.

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


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


Re: [PHP-DEV] Name of variable

2003-02-22 Thread Ivan Rodriguez
I need to get the because i doing a simple debugger, and i get the type
of variable and his information , and i would like to get his name, any
possible way does not exist?

thx

El sb, 22-02-2003 a las 15:42, Andi Gutmans escribi:
 You can't get the name of the variable. For what purpose do you need it?
 
 Andi
 
 At 03:45 PM 2/22/2003 +0100, Ivan Rodriguez wrote:
 
 
 Hello, i need to get the name of the variables who passed in one
 function, for example:
 
 
 switch ((*struc)-type) {
  case IS_BOOL:
  fprintf(_dyn_log_file_fp, %sbool:%s\n, COMMON,
 ((*struc)-value.lval?true:false));
  break;
 
 
 With this i get the typo of variable, and what can i do to get the name
 of variable??
 
 Thx.
 
 
 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 



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



Re: [PHP-DEV] Name of variable

2003-02-22 Thread Derick Rethans
On 22 Feb 2003, Ivan Rodriguez wrote:

 I need to get the because i doing a simple debugger, and i get the type
 of variable and his information , and i would like to get his name, any
 possible way does not exist?¿

It *is* possible, but it is not straight forward. plugBut why reinvent 
the wheel? Have a look at Xdebug: http://xdebug.derickrethans.nl/plug

Derick

-- 
Stop mad cowboy disease!
-
 Derick Rethans http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
-


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



Re: [PHP-DEV] Name of variable

2003-02-22 Thread Andi Gutmans
I think xdebug might do it (http://xdebug.derickrethans.nl/) although I've 
never used it.
Andi

At 03:56 PM 2/22/2003 +0100, Ivan Rodriguez wrote:
I need to get the because i doing a simple debugger, and i get the type
of variable and his information , and i would like to get his name, any
possible way does not exist?¿
thx

El sáb, 22-02-2003 a las 15:42, Andi Gutmans escribió:
 You can't get the name of the variable. For what purpose do you need it?

 Andi

 At 03:45 PM 2/22/2003 +0100, Ivan Rodriguez wrote:


 Hello, i need to get the name of the variables who passed in one
 function, for example:
 
 
 switch ((*struc)-type) {
  case IS_BOOL:
  fprintf(_dyn_log_file_fp, %sbool:%s\n, COMMON,
 ((*struc)-value.lval?true:false));
  break;
 
 
 With this i get the typo of variable, and what can i do to get the name
 of variable?¿?
 
 Thx.
 
 
 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php


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



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


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


[PHP-DEV] PHP 4 Bug Summary Report

2003-02-22 Thread php-dev
 PHP 4 Bug Database summary - http://bugs.php.net

 Num Status Summary (1058 total including feature requests)
===[*Configuration Issues]
19282 Wont fix   Place php4ts.dll into \sapi
20490 Analyzed   enable versioning not supported on OSX
20689 Wont fix   php_admin_value disable_functions not working as it should
21195 Verified   Configure warnings/errors
21216 Wont fix   phpize passes --no-verify to ltconfig without specifying host
21973 Open   'configure' script can't find libpng.(a|so), openldap, libjava...
22001 Wont fix   /php.ini is read instead of configured /usr/local/etc/php.ini !!!
22189 Open   Configuration file is not loaded, though PHP reports it is
===[*Database Functions]==
20946 Suspended  php_ingres.dll missing in the php 4 zip!!!
===[*Directory/Filesystem functions]
21310 Assigned   no such file (paths)
21532 Open   incorrect warning
21902 Feedback   PHPxx in /tmp
22309 Feedback   open_basedir: strange problems
===[*General Issues]==
20195 Open   make install doesnt set permissions
20775 Open   Silent install (/s) does not work
21254 Wont fix   Suggestion for the site
22047 Wont fix   PHP pollutes the namespace w/ (what looks like) its grammar tokens
22372 Critical   Don't forget to bump the PHP API number for 4.3.2 release
===[*Languages/Translation]===
11975 Wont fix   mix of hebrew  english
13014 Wont fix   hebrevc ()
20166 Open   Unicode (Slovenian) characters are not displayed correctly
===[*Mail Related]
22364 Open   Cc: mail header problem
===[*Math Functions]==
21534 Open   GMP lib gmp_gcdext() gives incorrect results
===[*Network Functions]===
15639 Suspended  detecting end of UDP packets
===[*Programming Data Structures]=
21062 Wont fix   Recursive calls may SEGV
===[Apache related]===
15529 Open   ap_cleanup_for_exec not used when creating
17837 Wont fix   PHP 'handles' permission problems rather than letting Apache do it
19113 Open   HTTP status 200 returned on HTTP CONNECT when mod_proxy not in use
19292 Feedback   random error: open_basedir restriction in effect. File is in wrong 
directory
20190 Critical   Random mem corruption: zend_get_executed_filename() mismatch
20551 Open   Output compression causes segfaults (ob_gzhandler)
20665 Wont fix   Memory leaks on SIGHUP
21056 Open   PHP messes with virtual hosts
22112 Open   When Php compiled with support for openssl it broke the SIHUP of 
apache
22233 Verified   mod_gzip_on yes makes force-cgi-redirect disabled and incorrect 
PHP_SELF
22272 Open   Segmentation Fault (11)
===[Apache2 related]==
17414 Open   Segfaults on restart
18359 Open   PHP module seem to make trouble with authentication under Apache 2
18957 Wont fixmultiple definitions
19618 Suspended  Cannot load libphp4.so - Win32 error 5
19787 Wont fix   Can not load module
20929 Open   Problem in handling big5 characters from HTML form
21040 Open   max_execution_time ignored
21074 Open   PHP doesn't work with 401 (Auth) ErrorDocument and Apache2
21283 Open   Apache2  PHP4.3 leak memory when respond to requests
21855 Open   Likely threading issue: Crash when using Apache 2.0 (worker model)
22072 Verified   connection_status() always returning 0
22273 Open   Cannot load libphp4.so into server: Unresolved external
22297 Open   Timeout when reading file from URL
22321 Open   Execute Bit and XBitHack seems to breaks PHP
===[Arrays related]===
18829 Wont fix   array_pop, array_shift, array_push... functions very slow with large 
arrays
20251 Wont fix   Can't assign values to array in loop.
===[CCVS related]=
10447 Wont fix   ccvs_*() functions segfault when given invalid session ID
===[CGI related]==
20896 Verified   php -w hangs indefinitely at 100% CPU
21862 Feedback   CGI SAPI header(HTTP/1.1 CODE Response) not passed
22127 Open   bogus http response when force-cgi-redirect safety mechanism triggered
22270 Assigned   cgi binary parses itself when called directly
22291 Assigned   iisfunc extension crashes on shutdown
22292 Open   PHP.EXE never ends
===[Class/Object related]=
15675 Suspended  get_class() returns only lower chars
17637 Analyzed   constructors in classes 

Re: [PHP-DEV] Name of variable

2003-02-22 Thread Derick Rethans
On Sat, 22 Feb 2003, Derick Rethans wrote:

 On 22 Feb 2003, Ivan Rodriguez wrote:
 
  I need to get the because i doing a simple debugger, and i get the type
  of variable and his information , and i would like to get his name, any
  possible way does not exist?¿
 
 It *is* possible, but it is not straight forward. plugBut why reinvent 
 the wheel? Have a look at Xdebug: http://xdebug.derickrethans.nl/plug

hmm, weird, it DID do it, as seen in the screenshots... but somehow it 
got lost in the current code :)

Derick

-- 
Stop mad cowboy disease!
-
 Derick Rethans http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
-


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



Re: [PHP-DEV] Name of variable

2003-02-22 Thread Ivan Rodriguez
Thx for all, i was trying to do something :-)

El sb, 22-02-2003 a las 15:57, Derick Rethans escribi:
 On 22 Feb 2003, Ivan Rodriguez wrote:
 
  I need to get the because i doing a simple debugger, and i get the type
  of variable and his information , and i would like to get his name, any
  possible way does not exist?
 
 It *is* possible, but it is not straight forward. plugBut why reinvent 
 the wheel? Have a look at Xdebug: http://xdebug.derickrethans.nl/plug
 
 Derick
 
 -- 
 Stop mad cowboy disease!
 -
  Derick Rethans http://derickrethans.nl/ 
  PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
 -
 



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



[PHP-DEV] BIS : [PHP-DEV] purpose of this mailing list

2003-02-22 Thread Sylvain Becker
Ok, 
I have written a module for php, (i mean, using zend api)
It is interesting to submit it? And whom do I have to ask ?


-Message d'origine-
De : Andrey Hristov [mailto:[EMAIL PROTECTED] 
Envoyé : samedi 22 février 2003 17:19
À : Sylvain Becker; [EMAIL PROTECTED]
Objet : Re: [PHP-DEV] purpose of this mailing list

Development of PHP (in C/C++), not with PHP.
For development with PHP : [EMAIL PROTECTED], [EMAIL PROTECTED] and
others.

Andrey

- Original Message -
From: Sylvain Becker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 22, 2003 6:12 PM
Subject: [PHP-DEV] purpose of this mailing list


 Hello.
 Excuse me for my question: what the goal of this mailinglist:
 Developement of php-motor? Dev of php-module? Php coding ?

 Sylvain Becker


 Sylvain Becker





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


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



[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/dba config.m4 dba.c dba_inifile.c php_inifile.h /ext/dba/libinifile .cvsignore inifile.c inifile.h /ext/dba/tests dba_inifile.phpt

2003-02-22 Thread Marcus Börger
At 18:20 22.02.2003, Marcus Boerger wrote:
helly   Sat Feb 22 12:20:06 2003 EDT
  Log:
  Added dba handler inifiles to support ini files. (Marcus)
If someone wants to test this stuff:

The layout of the inifile is:
[ group ]
name ws* = ws* value ws*
The dba keyformat to use is: [ [ group ] ] [ name ]

For example:

dba_insert([Testgroup]Testvalue, Value, $f) will insert(append) 
Testvalue with value Value to group Testgroup.
dba_delete([Testgroup]Testvalue, $f) will remove the Testvalue from the 
group Testgroup.
dba_delete([Testgroup], $f) will remove the complete group Testgroup.

Lines before any group line are possible, too. These are identified by the 
group [] for now.
Maybe i will change this to .

Some work is still to be done but in general it works pretty nice here.

regards
marcus


--
--
Marcus Börger - Looking for all sorts of freelance work - just ask...
Did i help you? Consider a gift:
http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0
--
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DEV] [PATCH][NEW FEATURE][HELP NEEDED] Forcing -f via mail() (ext/standard/mail.c)

2003-02-22 Thread Erik Wasser
I don't really know to start. I've made a patch and want to ask for
the offical way to bring this patch into the php engine (if this is
possible). I also need some help about the internals of php.

At first I will explain some things, why I made the patch. Imagine
a big webserver with a few dozen virtuell hosts on it. Some of the
hosts are doing different mailling list via php. There are sending
dozens of mails around the world. For some reasons they don't check
the emails for correctness. (*I* know this is bad.) And so the
mails will be returned - in case of an unreable 'To:' - to the
webserver itself: [EMAIL PROTECTED]. That is
bad, because this adress is not existing. Creating the adress will
not solve the problem, because then the mailing from different
customers are hitting all the same adress. That is bad too.

My basic idea was to 'fake' the fifth parameter of the mail
command.

Excerpt from http://www.php.net/manual/en/function.mail.php:

mail([EMAIL PROTECTED], the subject, $message, From:
  [EMAIL PROTECTED], [EMAIL PROTECTED]);

The 'additional_parameters' would solve my problem. I copy the
'From:' header to the 'additional_parameters'. Then I prefixed it
with a '-f' and everything is fine for sendmail and compatibles.

The patch is about 130 lines.

The questions are:

- what do you think about it?

- is it a good idea to 'fake' the '-f' parameter?

- Can I post the patch here? Which format? uu oder base64?

- How good are the chances that this patch is welcome?

- Who decides about good (going into the php-core) patches and bad
  patches (not going in)?

- Should there be a flag in php.ini for enabling/disabling it?

Thanx for your help.

-- 
So long... Fuzz

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



Re: [PHP-DEV] [PATCH][NEW FEATURE][HELP NEEDED] Forcing -f via mail() (ext/standard/mail.c)

2003-02-22 Thread Daniel Lorch
hi,

 I don't really know to start. I've made a patch and want to ask for
 the offical way to bring this patch into the php engine (if this is
 possible). [..]

This has been done several times now. Once by me, once by someone else,
and once by you. The decision was: No. Rationale: PHP should not fix
other applications' bugs. I disagree, but probably there have to be
a couple of more people writing such patches until someone understands
that this IS a serious problem.

-daniel

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



Re: [PHP-DEV] [PATCH][NEW FEATURE][HELP NEEDED] Forcing -f via mail() (ext/standard/mail.c)

2003-02-22 Thread Daniel Lorch
hi,

 - is it a good idea to 'fake' the '-f' parameter?

This can also be done with php_admin_value in the VirtualHost. No need to
patch PHP if you only want THIS behaviour.

-daniel

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



[PHP-DEV] bcpowmod() and bigIntegers

2003-02-22 Thread Robert Kofler
is there a possibility to implement bcpowmod() in a 
version prior than PHP5?

bcpowmod() ist the only way to calculate a blind signature
as described by David CHAUM 1982 - digicash
(openssl does not work here).

now I use the shell_exec command and an external java applet.
(btw. java has a great implemetation of the BigInteger.class)
-- 
/dev/robert

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



Re: [PHP-DEV] bcpowmod() and bigIntegers

2003-02-22 Thread Michael Bretterklieber
Hi,

Robert Kofler wrote:
is there a possibility to implement bcpowmod() in a 
version prior than PHP5?

bcpowmod() ist the only way to calculate a blind signature
as described by David CHAUM 1982 - digicash
(openssl does not work here).
try this:

function bcPowMod($n, $e, $m) {
   //if ($m == 0 || $e  0) return 0;
   if (bccomp($m, 0) == 0 || bccomp($e, 0) == -1) return 0;
   $res = 1;
   $pow = $n;
   $e1  = $e;
   //while ($e1 != 0) {
   while (bccomp($e1, 0) != 0) {
  $d = bcmod($e1, 2);
  //$e1  = floor(bcdiv($e1, 2));
  $e1  = bcdiv($e1, 2, 0);
  //if ($d == 1) {
  if (bccomp($d, 1) == 0) {
 $res = bcMod(bcMul($res, $pow), $m);
  }
  $pow = bcMod(bcMul($pow, $pow), $m);
   }
// if ($res  0)
if (bccomp($res, 0) == -1) $res = bcAdd($res, $m);
return $res;
}
bye,
--
--- -
Michael Bretterklieber- [EMAIL PROTECTED]
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat ---
A-8041 GRAZ GSM: ++43-(0)676-93 96 698
Tel: ++43-(0)316-403274-12  E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.bretterklieber.com
--- -
...the number of UNIX installations has grown to 10, with more
expected... - Dennis Ritchie and Ken Thompson, June 1972
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DEV] sending html email from a php script - please help

2003-02-22 Thread Adriaan Nel
Hi all,

I am trying to send html email from a php script, I know how to basically
use the mail() function, but it seems to be only able to send plain text
email.

If anyone can help me, please do

Thanks in advance
Adriaan Nel



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



[PHP-DEV] sending html email from php scripts - please help

2003-02-22 Thread Adriaan Nel
Hi all,

I would like to send html email from a php script, I know how to basically
use the mail() function, but it seems to be only able to send text
emailsdoes any1 know how I can solve this problemif so PLEASE let me
know about it.

Thanks in advance
Adriaan Nel



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



Re: [PHP-DEV] sending html email from php scripts - please help

2003-02-22 Thread Melvyn Sopacua
On Sat, 22 Feb 2003, Adriaan Nel wrote:

AN I would like to send html email from a php script, I know how to basically
AN use the mail() function, but it seems to be only able to send text
AN emailsdoes any1 know how I can solve this problemif so PLEASE let me
AN know about it.

This is a well-kept secret in the lands of PHP. There are only a few who posess
the knowledge of the enriched letters. These scholared few may be found following
the path to [EMAIL PROTECTED] Gold offerings may enhance your chances of
finding the right person.

-- 
With kind regards,

Melvyn Sopacua
?php include(not_reflecting_employers_views.txt); ?


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



[PHP-DEV] RFC: dba/inifile native interface

2003-02-22 Thread Marcus Börger
After fixing hopefully last problems in the inifile handler i made
up a patch which introduces a native interface to the inifile handler.
I did this because the [group]name key format is not intuitive.
The patch introduces following (self speaking) new functions:

int inifile_open(string path, string mode)
string|false inifile_get(int inifile [, string group], string name)
bool inifile_set(int inifile [, string group], string name, mixed value)
bool inifile_add(int inifile [, string group], string name, mixed value)
bool inifile_del(int inifile [, string group], string name)
and inifile_close() beeing an alias to dba_close()

this interface is not meant to have first/nextkey but that would be
easy to add if someone wants it.
http://marcus-boerger.de/php/ext/dba_inifile.diff.txt

regards
marcus


--
--
Marcus Börger - Looking for all sorts of freelance work - just ask...
Did i help you? Consider a gift:
http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0
--
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DEV] domxml close document routine

2003-02-22 Thread Robert Oldham
Overview:
domxml does not include a close document routing to release memory after
an xml document has been processed.  I have added one.

Purpose:
I am using PHP's domxml functionality to parse thousands (17,000+) xml
documents in a single request.  The current implementation of domxml in
PHP does not allow for xml documents to be closed, so memory is lost at
more than 7KB/document during processing.  I have been able to reduce
this to 1KB/document by adding a close document routine to the PHP
domxml extension and calling that close routine in my PHP scripts.

Diff:
Please see the patch files for my changes at the following URLs.
http://robertoldham.com/php_domxml.h.php4.diff
http://robertoldham.com/php_domxml.c.php4.diff

http://robertoldham.com/php_domxml.h.php5.diff
http://robertoldham.com/php_domxml.c.php5.diff

Caveats:
Lacking familiarity with PHP development, I am not sure that my
implementation of the close routine is optimal.  However, I have been
using this code change in php-4.2.3, php-4.3.0 and php-4.3.1 for
approximately 6 weeks without any problems.

I am also unfamiliar with the process of getting a change reviewed and
applied.  If I have done anything wrong, or need to do additional things
to follow this through, please let me know.

Thank you,
Robert Oldham



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



Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/dba config.m4 dba.c dba_inifile.c php_inifile.h /ext/dba/libinifile .cvsignore inifile.c inifile.h /ext/dba/tests dba_inifile.phpt

2003-02-22 Thread Marcus Börger
At 03:49 23.02.2003, Jani Taskinen wrote:

I kinda missed the point of this thing..any real life examples..? :)

The [group]name format is only to be able to use dba for ini files.
The trick is a keyname cannot start with [, thats all.
However i just introduced the native interface, see:
http://marcus-boerger.de/php/ext/dba_inifile.diff.txt
Having this you can play around using the php.ini file for example :-)

marcus



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


[PHP-DEV] CVS Account Request: ernestyang

2003-02-22 Thread ernest
Maintaining the documentation

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