Re: [PHP-DEV] Sablotron XSLT

2003-02-23 Thread Melvyn Sopacua
On 23 Feb 2003, Ray Hunter wrote: RH>>> Who is working on the sablotron xslt module? I would like to help out RH>>> with its development. See the header in ext/xslt/sablot.c :) Currently, there's not much going on though - PHP-4.x tree is in feature-freeze, and XML support in PHP5 is under the

Re: [PHP-DEV] [patch] solaris getcwd() brokeness

2003-02-23 Thread James E. Flemer
Oh good, it hasn't been forgotten. I just want to point out that if committed the open() statement should probably use O_RDONLY. [main.c @ ~1542] I used 0 because I didn't have time to figure out where to add the correct #include to get O_RDONLY into main.c. -James On Sun, 23 Feb 2003, Wez Fur

Re: [PHP-DEV] [patch] solaris getcwd() brokeness

2003-02-23 Thread Wez Furlong
Hi Andi (and James) Andi: I'd appreciate your comments on this patch, specifically if there are any concerns about it doing the right thing. Most people here: http://bugs.php.net/bug.php?id=21310&edit=1 report that it fixes their problems with solaris. I've held off from looking at this, as I d

Re: [PHP-DEV] [PATCH] imagesavealpha()

2003-02-23 Thread Pierre-Alain Joye
Hello, The 1st patch will be applied, the 2nd is better but increase again the difference between the official GD and the bundled GD. Our plan is to keep our energy on the new gd and provides only bugfixes in the current 4.3 releases, that makes our life really easier. thank's for your contribut

[PHP-DEV] [PATCH] include file when using open_basedir

2003-02-23 Thread David Saez
Hi !! Correction to last submited patch !! Including or openeing a file fails when all paths defined in include_path are not also defined in open_basedir, regardless if the file to open/include is in both definitions. Imagine include_path = .:/usr/local/lib/php:/usr/local/http-docs open_

[PHP-DEV] [PATCH] warning does not report correct open_basedir

2003-02-23 Thread David Saez
Hi !! open_basedir warning in fopen_wrappers.c does not correctly report the real open_basedir paths, it only reports the path it was actually testing when the test failed. This patch will make it show the correct information. -- Best regards ... I was arrested for selling illegal sized paper.

[PHP-DEV] [PATCH] include file when using open_basedir

2003-02-23 Thread David Saez
Hi !! Including or openeing a file fails when all paths defined in include_path are not also defined in open_basedir, regardless if the file to open/include is in both definitions. Imagine include_path = .:/usr/local/lib/php:/usr/local/http-docs open_basedir = .:/usr/local/http-docs tryi

Re: [PHP-DEV] Performance degradation part 2 the module version

2003-02-23 Thread Rasmus Lerdorf
> Have you been testing PHP_4_3 from CVS or the actual 4.3.0 release? > You might find the situation slightly better using the latest (I tidied > up some seek related issues the other day). The straces are from PHP_4_3 HEAD as of this morning. I thought originally that these issues were just a ha

Re: [PHP-DEV] Performance degradation part 2 the module version

2003-02-23 Thread Wez Furlong
This double seeking is most probably due to the fact that the stdio layer does one set of seeking, whereas streams needs to do another. This can be solved by moving away from using stdio for streams, and just using the "raw" descriptors instead. (already made a start on this in PHP 5). I'm a lit

[PHP-DEV] extra realpath() found

2003-02-23 Thread Rasmus Lerdorf
Hey Sander, you fixed a problem back in July where you introduced a second realpath() call into the main execute_script() function. I understand what you were trying to achieve, but realpath() is way way too expensive to toss around like that, especially since we already do the realpath on the fop

[PHP-DEV] Sablotron XSLT

2003-02-23 Thread Ray Hunter
Who is working on the sablotron xslt module? I would like to help out with its development. Thanks, Ray Hunter -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Performance degradation

2003-02-23 Thread Shane Caraveo
Rasmus Lerdorf wrote: On Sun, 23 Feb 2003, Shane Caraveo wrote: CGI, right? Part of this may be from the path_info handling I've added. The extra realpath() and fstat() calls are not cgi specific, so if what you added only affects cgi, then that isn't the big problem. -Rasmus ok, it's only i

Re: [PHP-DEV] Performance degradation

2003-02-23 Thread Rasmus Lerdorf
On Sun, 23 Feb 2003, Shane Caraveo wrote: > Rasmus Lerdorf wrote: > > So, I am just starting out down the path to figure out why PHP 4.3 has > > gotten so much slower than 4.2. "strace -c" provides the first clue. A > > straight "./configure --enable-inline-optimization && make" command-line > >

Re: [PHP-DEV] Performance degradation

2003-02-23 Thread Shane Caraveo
Rasmus Lerdorf wrote: So, I am just starting out down the path to figure out why PHP 4.3 has gotten so much slower than 4.2. "strace -c" provides the first clue. A straight "./configure --enable-inline-optimization && make" command-line build for 4.2, 4.3 and 5.0 run on a simple hello world scrip

Re: [PHP-DEV] Performance degradation part 2 the module version

2003-02-23 Thread Jim Jagielski
Rasmus Lerdorf wrote: > > That's true, but in threaded mode we don't do the chdir() at all. This is > specifically for non-threaded. > Gotcha... didn't realize you were referring to non-t'ed only. -- === Jim Jagielski

Re: [PHP-DEV] Performance degradation part 2 the module version

2003-02-23 Thread Rasmus Lerdorf
On Sun, 23 Feb 2003, Jim Jagielski wrote: > Rasmus Lerdorf wrote: > > > > Even in 4.2, I think we can optimize it. Assuming chdir() doesn't return > > an error, we shouldn't need that second getpwd() call since we just did > > the chdir() and we should know where we are. > > > > Not necessarily..

Re: [PHP-DEV] Performance degradation part 2 the module version

2003-02-23 Thread Jim Jagielski
Rasmus Lerdorf wrote: > > Even in 4.2, I think we can optimize it. Assuming chdir() doesn't return > an error, we shouldn't need that second getpwd() call since we just did > the chdir() and we should know where we are. > Not necessarily... In a threaded environment, if threadA does chdir(/tmp)

[PHP-DEV] Performance degradation part 2 the module version

2003-02-23 Thread Rasmus Lerdorf
A little bit harder to get clean output on this one. The numbers in the <>'s are the times for the system call. Here is a 4.2 hello world request: accept(24, {sin_family=AF_INET, sin_port=htons(57198), sin_addr=inet_addr("10.0.1.254")}}, [16]) = 3 <4.035087> rt_sigaction(SIGUSR1, {SIG_IGN}, {0x

Re: [PHP-DEV] Why parent::construct not called?

2003-02-23 Thread Marcus Börger
At 18:29 23.02.2003, Timm Friebe wrote: Well, because there might be situations in which I'd like to call the parent's constructor before my code in __construct, sometimes after it and in some situations, not call it at all. I hope you will never avoid initialising the base class or just call the b

Re: [PHP-DEV] give me advice

2003-02-23 Thread Daniel Lorch
hi, > I have built a small daemon which is able to manage a "neural network" > I have built a php-module php-module (in c/c++) to communicate with the > previous "server". > > Do you think it could be interesting to do improve this things ? > Sylvain Becker If it is generic enough, why not try

Re: [PHP-DEV] Why parent::construct not called?

2003-02-23 Thread michel 'ziobudda' morelli
Il dom, 2003-02-23 alle 18:07, Marcus Börger ha scritto: > In ZE2 each class has a constructor. That constructor can be overwritten > by writing a method named "__construct". So far so good. Ok... This is the design.. tnx. -- michel 'ziobudda' morelli <[EMAIL PROTECTED]> -- PHP Development M

Re: [PHP-DEV] Why parent::construct not called?

2003-02-23 Thread Timm Friebe
On Sun, 2003-02-23 at 18:04, michel 'ziobudda' morelli wrote: > Il dom, 2003-02-23 alle 17:32, Marcus Börger ha scritto: > > You can do the following: > > class base { > > function __construct() { > > echo "base::__construct()\n"; > > } > [...] > > I know know. >

Re: [PHP-DEV] Why parent::construct not called?

2003-02-23 Thread Marcus Börger
At 18:02 23.02.2003, michel 'ziobudda' morelli wrote: Il dom, 2003-02-23 alle 17:32, Marcus Börger ha scritto: > You can do the following: > class derived extends base { > function __construct() { > parent::__construct(); > echo "derived::__construct()\n";

Re: [PHP-DEV] Why parent::construct not called?

2003-02-23 Thread michel 'ziobudda' morelli
Il dom, 2003-02-23 alle 17:32, Marcus Börger ha scritto: > You can do the following: > class base { > function __construct() { > echo "base::__construct()\n"; > } [...] I know know. What I want to understand is why the base::__construct() is called (in automati

Re: [PHP-DEV] Performance degradation

2003-02-23 Thread Rasmus Lerdorf
On Sun, 23 Feb 2003, Stanislav Malyshev wrote: > RL>> So, obviously these opens don't really affect the module version > RL>> since they only happen on startup, but they still don't seem right. > RL>> I understand ./php-cgi.ini, but .//php-cgi.ini and .//php.ini? > RL>> Looks like a missing check

Re: [PHP-DEV] Performance degradation

2003-02-23 Thread Stanislav Malyshev
RL>> So, obviously these opens don't really affect the module version RL>> since they only happen on startup, but they still don't seem right. RL>> I understand ./php-cgi.ini, but .//php-cgi.ini and .//php.ini? RL>> Looks like a missing check there. If this is only for CGI/startup, it is indee

Re: [PHP-DEV] Performance degradation

2003-02-23 Thread Marcus Börger
So, obviously these opens don't really affect the module version since they only happen on startup, but they still don't seem right. I understand ./php-cgi.ini, but .//php-cgi.ini and .//php.ini? Looks like a missing check there. I just recognized these yesturday, too and was thinking the same

Re: [PHP-DEV] Why parent::construct not called?

2003-02-23 Thread Marcus Börger
At 16:46 23.02.2003, michel 'ziobudda' morelli wrote: Hi, why if I have class B extends A { } the only way to call in automatic the A::__construct() is to not write the B::__construct() ? Ok, this is the design of PHP. But why ? You can do the following: class base { function __construct()

[PHP-DEV] Performance degradation

2003-02-23 Thread Rasmus Lerdorf
So, I am just starting out down the path to figure out why PHP 4.3 has gotten so much slower than 4.2. "strace -c" provides the first clue. A straight "./configure --enable-inline-optimization && make" command-line build for 4.2, 4.3 and 5.0 run on a simple hello world script reveals that we have

[PHP-DEV] give me advice

2003-02-23 Thread Sylvain Becker
I'd like to create an open source project : I have built a small daemon which is able to manage a "neural network" I have built a php-module php-module (in c/c++) to communicate with the previous "server". Do you think it could be interesting to do improve this things ? Sylvain Becker

[PHP-DEV] Why parent::construct not called?

2003-02-23 Thread michel 'ziobudda' morelli
Hi, why if I have class B extends A { } the only way to call in automatic the A::__construct() is to not write the B::__construct() ? Ok, this is the design of PHP. But why ? tnx -- michel 'ziobudda' morelli <[EMAIL PROTECTED]> -- PHP Development Mailing List To uns

[PHP-DEV] Re: [PHP-LANG] PHP not supporting method overloading

2003-02-23 Thread Derick Rethans
On Sun, 23 Feb 2003, Jun wrote: > Hi! I have a website whose pages were written in PHP.. using some classes I > have made that extensively use method overloading.. Before, my webhosting > company was using PHP 4.0.6 but just this january, they have upgraded to PHP > 4.3.0... that is when I started

Re: [PHP-DEV] domxml close document routine

2003-02-23 Thread Christian Stocker
Hi You're right, there is no functionality right now, which is freeing the domxml resources and I looked quickly through your patch. But i'm not sure, what you're gaining exactly with it. You're not freeing the libxml resources itself (and therefore the actual xml data), but just the Zend-Resource

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

2003-02-23 Thread Marcus Börger
At 12:11 23.02.2003, Sascha Schumann wrote: On Sun, 23 Feb 2003, Marcus Börger wrote: > 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.

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

2003-02-23 Thread Sascha Schumann
On Sun, 23 Feb 2003, Marcus Börger wrote: > 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. Care to explain what it does? Does it fe

[PHP-DEV] CVS Account Request: ernestyang

2003-02-22 Thread ernest
Maintaining the documentation -- PHP Development Mailing List 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: ht

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

2003-02-22 Thread Jani Taskinen
I kinda missed the point of this thing..any real life examples..? :) --Jani On Sat, 22 Feb 2003, Marcus Börger wrote: >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. (Mar

[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

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

2003-02-22 Thread Sara Golemon
> is there a possibility to implement bcpowmod() in a > version prior than PHP5? > The following patch can be applied to PHP 4.3.0 or PHP 4.3.1. It adds bcpowmod() which isn't scheduled for inclusion until PHP5 and also includes bugfixes and other modifications slated for the PHP4.3.2 release. Us

[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, st

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

2003-02-22 Thread Erik Wasser
Daniel Lorch <[EMAIL PROTECTED]> wrote: >> - 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. I know. B-) But I needed a solution about setting '-f' on per email basis, not on

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

2003-02-22 Thread Erik Wasser
Daniel Lorch <[EMAIL PROTECTED]> wrote: > 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 patc

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.

[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 Ma

[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 To un

[PHP-DEV] bindlib_w32 fix for Visual Studio .NET

2003-02-22 Thread Jon Parise
I ran into a problem when building bindlib_w32 using Visual Studio .NEt under Windows XP: nsap_addr.c(38) : error C2491: 'isxdigit' : definition of dllimport function not allowed The attached patch corrects this problem. I don't have commit privileges for the bindlib_w32 module, so if someone c

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

[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 grea

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 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 no

[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 v

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
Lines before any group line are possible, too. These are identified by the group "[]" for now. Maybe i will change this to "". Skip the last line - i forgot i already did this because it is needed to have the test working :-) marcus -- --

[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: "[" "]" ws* "=" ws* ws* The dba keyformat to use is: [ "[" "]" ] [ ]

[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: [PH

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

2003-02-22 Thread Andrey Hristov
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] Release plan of PHP 4.3.2?

2003-02-22 Thread Peter Neuman
Hello, Me a legend when does it know RC's/Final of 4.3.2 gives? because 4.3.0/4.3.1 are buggy. :( Peter Neuman -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] purpose of this mailing list

2003-02-22 Thread Sylvain Becker
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-DEV] What about fsize()

2003-02-22 Thread Marcus Börger
What about a new function fsize()? I was thinking about extending filesize but that one is a wrapper around another function which handles stat access based on filenames. fsize() instead would use seekset/tell from our streams stuff. regards marcus -- PHP Development Mailing List

Re: [PHP-DEV] Name of variable

2003-02-22 Thread Ivan Rodriguez
Thx for all, i was trying to do something :-) El sáb, 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

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

[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 2068

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 possibl

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. But why reinvent the wheel?

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 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 yo

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:

[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

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()\n"; echo "\$Protetta: ".$this->prot

[PHP-DEV] no construct called

2003-02-22 Thread michel 'ziobudda' morelli
Hi, I have this code: \n"; } */ function __construct() { echo "sono in esempio::__construct()\n"; $this->protetta = "I'm protect"; } function exe() { echo "sono in exe()\n"; echo $this->protetta; } } class exe extends esempio {

[PHP-DEV] CVS Account Request: kidcn

2003-02-21 Thread adolf china
good -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: damian

2003-02-21 Thread Damian Alejandro Fernandez Sosa
Develop the PEAR's Net_IMAP package -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] URGENT - Can anyone say 4.0.9? Geesh...

2003-02-21 Thread Louwtjie
even developers lists aren't safe from snail-trail scammers! Grrr... Louwtjie Taljaard _ Services: * IT Security Consulting * Systems Management * Systems Administration * HP / IBM / Sun / SGI / Cisco Operations * Software & Web Presence Development _ Looking for love in a

[PHP-DEV] URGENT

2003-02-21 Thread EKI OMORODION
MRS. EKI OMORODION # 8 Queens Drive Ikoyi Lagos. Email:[EMAIL PROTECTED] INTRODUCTION: l am Mrs. Eki Omorodion l know this proposal will come to you as a surprise because we have not met before either physically or through correspondence. I have no doubt in your ability to handle this proposal inv

Re: [PHP-DEV] Announcement: Next generation ext_skel

2003-02-21 Thread Andi Gutmans
It'd be nice to see an example of the XML. I liked the simplicity of today's prototype file, I'm not sure XML isn't an overkill. Andi At 11:24 AM 2/19/2003 +0100, Hartmut Holzgraefe wrote: i've just added the first working results of a replacement for the good old ext_skel script in php/scripts

[PHP-DEV] Help with SAPI and INI

2003-02-21 Thread Justin Erenkrantz
Hello all, Pardon my cluelessness, but I'm trying to teach the apache2* SAPI's about PHP's xbithack setting per the following bug (which Jani has pointed me at): http://bugs.php.net/bug.php?id=22321 I believe I have the logic for that bug corrected in my tree. (As an aside, this particular bu

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Rasmus Lerdorf
On Fri, 21 Feb 2003, Ilia A. wrote: > On February 21, 2003 09:38 am, Sascha Schumann wrote: > > > implode) and fclose. However, IMO this wrapper is very useful since it > > > simplifies commonly used code a great deal and even makes it slightly > > > faster since the wrapper is in C rather then in

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Ilia A.
On February 21, 2003 09:38 am, Sascha Schumann wrote: > > implode) and fclose. However, IMO this wrapper is very useful since it > > simplifies commonly used code a great deal and even makes it slightly > > faster since the wrapper is in C rather then in PHP. > > Oh, come on. Put it into a uti

[PHP-DEV] CVS Account Request: retnug

2003-02-21 Thread Claudio Gaetani
Contribute with the documentation of PHP Manual, Translations and MacOS X Generations of Help PHP Manual, in italian and Engliash -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Two ZE2 problems

2003-02-21 Thread Sander Roobol
On Fri, Feb 21, 2003 at 10:47:16AM -0600, Brian Moon wrote: > | class foo {} > | class bar { > | var $baz = 'foo'; > | } > | $bar = new bar(); > | $foo = new $bar->baz; // let's call this line 6 > | > | It runs fine on ZE1, but ZE2 bails out with "parse error, unexpected > | T_OBJEC

Re: [PHP-DEV] Two ZE2 problems

2003-02-21 Thread Brian Moon
| class foo {} | class bar { | var $baz = 'foo'; | } | $bar = new bar(); | $foo = new $bar->baz; // let's call this line 6 | | It runs fine on ZE1, but ZE2 bails out with "parse error, unexpected | T_OBJECT_OPERATOR on line 6". Should this work? YOu are using new with a returned v

[PHP-DEV] Two ZE2 problems

2003-02-21 Thread Sander Roobol
I recently discovered two problems in ZE2 that break BC. The following snippet works fine on ZE1, but gives "Fatal error: Class 'foo' not found" on ZE2. Classes apparently need to be defined before they can be used. $bar = new foo(); class foo {} Although it's easy to work around this proble

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Derick Rethans
On Fri, 21 Feb 2003, Sascha Schumann wrote: > > implode) and fclose. However, IMO this wrapper is very useful since it > > simplifies commonly used code a great deal and even makes it slightly faster > > since the wrapper is in C rather then in PHP. > > Oh, come on. Put it into a utility lib

[PHP-DEV] Patches for 4_3 COM Memory Leaks

2003-02-21 Thread Michael Sisolak
The recent fixes to the COM extension (for the 4_3 branch) have helped with a lot of the memory leaking that was occuring. Working with the latest snapshot I've done some additional work to clean up the few remaining leaks I am seeing in my COM calls. I believe that the two patches below eliminat

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Sascha Schumann
> implode) and fclose. However, IMO this wrapper is very useful since it > simplifies commonly used code a great deal and even makes it slightly faster > since the wrapper is in C rather then in PHP. Oh, come on. Put it into a utility library; this does not belong into the core of PHP. O

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Ilia A.
On February 21, 2003 05:00 am, Sascha Schumann wrote: > Alternatively, I would suggest to teach the submitter of that > patch regarding fopen, fwrite, implode. He might have > overlooked those existing functions. That's what I like about PHP, you learn about new functions every single

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Ilia A.
On February 21, 2003 04:54 am, Wez Furlong wrote: > Look in the archives for that guys original patch; it allowed doing > something like this: > > $foo = array(); > > $foo[] = "some text"; > $foo[] = "more text"; > > file_put_contents("file.txt", $foo); > > and also: > >

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Markus Fischer
On Fri, Feb 21, 2003 at 03:04:27AM +0200, Jani Taskinen wrote : > On Thu, 20 Feb 2003, Sara Golemon wrote: > > >I recall a discussion sometime back about making file_put_contents() (create > >a file and write the provided contents to it in one command) and > >file_add_contents() (like put but app

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Sascha Schumann
n Fri, 21 Feb 2003, Dirkjan Ochtman wrote: > That's like one of those functions I've written myself and have to include > in about every project I write... > > I think it's a Good Thing. Well, I fully understand that. I just disagree with the idea that this utility function should become

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Dirkjan Ochtman
That's like one of those functions I've written myself and have to include in about every project I write... I think it's a Good Thing. Regards, Dirkjan Ochtman "Sascha Schumann" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I meant a *plain* file_put_con

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Hartmut Holzgraefe
Sascha Schumann wrote: But a simple wrapper for a two-line fopen/fputs? Get real. you forgot the fclose() ;) -- Six Offene Systeme GmbH http://www.six.de/ i.A. Hartmut Holzgraefe Email: [EMAIL PROTECTED] Tel.: +49-711-99091-77 Sie finden uns auf der CeBIT in Halle 6/H44 http:/

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Sascha Schumann
> I meant a *plain* file_put_contents: That must be one of the most useless function proposals I've seen so far. Now, if the function could atomically replace file contents, then it would be something entirely different. But a simple wrapper for a two-line fopen/fputs? Get r

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Derick Rethans
On Fri, 21 Feb 2003, Sascha Schumann wrote: > > I think a counterpart for file_get_contents in the form of a plain > > file_put_contents would be welcome. > > Don't tell me that > > Derick -- Stop mad cowboy disease! -

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Sascha Schumann
On Fri, 21 Feb 2003, Derick Rethans wrote: > On Fri, 21 Feb 2003, Sascha Schumann wrote: > > > > I'm not 100% sure if we want this feature, but perhaps it is worth > > > revisiting that patch. > > > > Alternatively, I would suggest to teach the submitter of that > > patch regarding fopen,

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Derick Rethans
On Fri, 21 Feb 2003, Sascha Schumann wrote: > > I'm not 100% sure if we want this feature, but perhaps it is worth > > revisiting that patch. > > Alternatively, I would suggest to teach the submitter of that > patch regarding fopen, fwrite, implode. He might have > overlooked those e

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Sascha Schumann
> I'm not 100% sure if we want this feature, but perhaps it is worth > revisiting that patch. Alternatively, I would suggest to teach the submitter of that patch regarding fopen, fwrite, implode. He might have overlooked those existing functions. - Sascha -- PHP Development Mai

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Derick Rethans
On Fri, 21 Feb 2003, Sascha Schumann wrote: > On Fri, 21 Feb 2003, Jani Taskinen wrote: > > > > > I object! :) It should be one function with extra parameter > > to decide the action.. > > Please put this code into ext/completely_unneeded. ah, you mean ext/ircg... Derick --

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Sascha Schumann
On Fri, 21 Feb 2003, Jani Taskinen wrote: > > I object! :) It should be one function with extra parameter > to decide the action.. Please put this code into ext/completely_unneeded. - Sascha -- PHP Development Mailing List To unsubscribe, visit: http://www

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Wez Furlong
Look in the archives for that guys original patch; it allowed doing something like this: $foo = array(); $foo[] = "some text"; $foo[] = "more text"; file_put_contents("file.txt", $foo); and also: file_put_contents("file.txt", $foo, $bar, $baz); I'm not

Re: [PHP-DEV] Jumadi

2003-02-21 Thread [EMAIL PROTECTED]
I think this is not the right group you're posting too. Post your question in the right newsgroup [PHP-WIN], ... Anyway your question is more system-technical. This has nothing to do with PHP. You have to configure your internetaccess server or your router or your internetshare-pc. Check out the

Re: [PHP-DEV] Jumadi

2003-02-20 Thread Marcus Börger
that would stop this annoying "CVS account request" messages ;) Wojtek I have brought up the followong idea before but noone actually did something about my or other ideas. Why not simply have messages from non registered users reply with a mail repeating the list purpose again (php

<    3   4   5   6   7   8   9   10   11   12   >