[PHP-DEV] hi memory usage with php-cli

2002-11-24 Thread Robin Ericsson
Hi, I have a huge xml-file with about 500k lines, which gives around 17000 products, which I import to a database. The problem is that the script is taking a lot of memory, about 100mb when it's finished. The script goes something like this $product = array(), then I add some values to the array

[PHP-DEV] XML_Parser and php

2002-11-20 Thread Robin Ericsson
TER/MINNEN/VIKING COMPONENTS/ DATORKOMPONENTE/R/MINNEN/VIKING COMPONENTS/ DATORKOM/PONENTER/MINNEN/VIKING COMPONENTS/ -- Robin Ericsson <[EMAIL PROTECTED]> function cDataHandler($xp, $data) { switch($this->sCurrentNode) { ca

[PHP-DEV] extension 4.0.6 -> 4.2.2

2002-07-28 Thread Robin Ericsson
Hi, I'm began converting a module I wrote for 4.0.6, and I use this code: if ((zend_hash_find(&EG(symbol_table), "HTTP_SERVER_VARS", sizeof("HTTP_SERVER_VARS"), (void **) &data) != FAILURE) && Z_TYPE_PP(data) == IS_ARRAY) In 4.2.x, I just change this to _SERVER, or is there another "fancier"

Re: [PHP-DEV] RFC: README.SUBMMITING_PATCH

2002-03-18 Thread Robin Ericsson
eparing a patch for the bug databases so it could handle > file attachments. i don't know what happened with it. > That would be me I guess, but I haven't got time to finish something yet, and I'll go on vacation next week, so don't expect anything that soon from me :( -

Re: [PHP-DEV] Re: Bug #15841 Updated: CRLF to separate mail headersis incorrect

2002-03-07 Thread Robin Ericsson
t qmail expects CRLF in message data, and you will get this error if you only provide LF. I ran into it when using qmail smtp, don't know if qmails sendmail clone behaves the same -- Robin Ericsson "The secret of flying is to throw yourself at the ground, and miss." -- Douglas Adams -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] new bug "status"

2002-03-06 Thread Robin Ericsson
find them lying there for several months, without anyone have time to find/look at them. -- Robin Ericsson "The secret of flying is to throw yourself at the ground, and miss." -- Douglas Adams -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] New Module

2002-03-05 Thread Robin Ericsson
nf[dbname] , $conf[dbuser] , $conf[dbpass] ); print_r($conf); // or var_dump($conf); ? > And the encryption method can be changed easily, just doing a new > libmycrypt.so. Like I said, libmycrypt.so is meant to have the funtionc > (char *)my_crypt(char *) and (char *)my_decrypt(char *

[PHP-DEV] patch upload in bugs

2002-03-02 Thread Robin Ericsson
The current bugsystem is not very "patch friendly". And as I see it browsing through the bugs, patches are often simply ignored without even tell the submitter what they can do to fix it up. bugzilla on the other hand have a very nice feature to take care of patches and files linked to bugs. I do

Re: [PHP-DEV] php cvs with zendengine2

2002-03-01 Thread Robin Ericsson
> > > Configure Command './configure' '--with-mysql=/usr/local' > > > '--enable-inline-optimization' '--enable-sysvsem' '--enable-sysvshm' > > > '--enable-shmop' '--enable-trans-sid' '--with-imap=/usr/local' > > > '--with-gettext=/usr/local' '--enable-dbase' '--enable-ctype' > > > '--with-gd=/us

[PHP-DEV] ext/srm

2002-02-25 Thread Robin Ericsson
I though I saw a mail regarding moving srm extension to php4/ext repository? However I might be blind, as I can't find it on cvs.php.net, or the snapshots. Regards - robin -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] wierd ext problem, gcc3 the reason?

2002-02-18 Thread Robin Ericsson
I have a extension I write, partly C++. The extension works without problems on my debian with gcc 2.95.4, but when I use it with gcc 3, apache doesn't start. However, if I compile php cgi, and load the extension, it works, so it seems apache is the bandit. Anyone been into the same problems?

Re: [PHP-DEV] PHP 4.2.0 / PHP 5.0.0-alpha

2002-02-04 Thread Robin Ericsson
On Mon, 2002-02-04 at 12:39, Sebastian Bergmann wrote: > While we're at it: Andi mentioned some time ago that he'd like to > release an alpha version of the Zend Engine 2 bundled with PHP as a > tar-ball. Why not use the PHP_4_2_0 branch for that, once it's stable > and Q&A'd, and release

[PHP-DEV] "no feedback"-status

2002-01-30 Thread Robin Ericsson
Would be nice to have "No feedback", on the bugs-statistics page. Can this be arranged? regards robin -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-ma

Re: [PHP-DEV] bug reports

2002-01-24 Thread Robin Ericsson
On Thu, 2002-01-24 at 15:27, Jan Lehnardt wrote: > Hi, > On 24 Jan 2002 12:46:20 +0100 > Robin Ericsson <[EMAIL PROTECTED]> wrote: > > > I'm pretty sure some of the bugs reported for earlier versions of php > > are fixed in 4.1.1 > --- http://bugs.php.net

[PHP-DEV] bug reports

2002-01-24 Thread Robin Ericsson
Maybe add some text to bugs.php.net that they should try the latest version of php before they post a bug-report? I'm pretty sure some of the bugs reported for earlier versions of php are fixed in 4.1.1 Just my .2 cents.. regards robin -- PHP Development Mailing List

Re: [PHP-DEV] BEGIN_EXTERN_C()

2002-01-22 Thread Robin Ericsson
On Fri, 2002-01-18 at 14:34, Andi Gutmans wrote: > No good reason. If you need to add it in someplaces go ahead and send in a > patch. > There are probably more places this can be needed, but these where enought for me to get my extension to compile and run. > On 18 Jan 2002, Ro

[PHP-DEV] free_zval not working?

2002-01-22 Thread Robin Ericsson
I'm using this on php 4.0.6, it know it's old, but things will break if I upgrade :) This is the code: zval *z_return; MAKE_STD_ZVAL(z_return); php_char_to_str(retval, strlen(retval), '\n', "\n", 5, z_return); FREE_ZVAL(z_return); This code gives me: string.c(2122) : Freeing 0x08257

[PHP-DEV] calling other php-functions from extensions..

2002-01-21 Thread Robin Ericsson
Is call_user_function_ex() the right way if I want to call "standard" php functions from my extension, like "htmlentities", and such? regards Robin -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: [PHP-DEV] Re: session problems with own session handler in php..

2002-01-18 Thread Robin Ericsson
> Derick Rethans wrote: > > On Fri, 18 Jan 2002, Yasuo Ohgaki wrote: > > > > > >>>Well, as for me, with some checking I did yesterday when I did my first > >>>post. In the beginning of the script print_r($_SESSION); returns > >>>nothing, but after settings some values, print_r returns it an > >>>a

[PHP-DEV] BEGIN_EXTERN_C()

2002-01-18 Thread Robin Ericsson
Is there any reason that only parts of Zend is using BEGIN_EXTERN_C()? regards Robin -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED

Re: [PHP-DEV] Re: session problems with own session handler in php..

2002-01-17 Thread Robin Ericsson
On Fri, 2002-01-18 at 08:29, Derick Rethans wrote: > On Fri, 18 Jan 2002, Yasuo Ohgaki wrote: > > > > Well, as for me, with some checking I did yesterday when I did my first > > > post. In the beginning of the script print_r($_SESSION); returns > > > nothing, but after settings some values, print

Re: [PHP-DEV] Re: session problems with own session handler in php..

2002-01-17 Thread Robin Ericsson
On Fri, 2002-01-18 at 03:00, Yasuo Ohgaki wrote: > Robin Ericsson wrote: > > This seems very similar to bug #14880. > > > > I use a session handler written in php, which I set with > > session_set_save_handler(). > > > > The problem is that my write fun

Re: [PHP-DEV] shmop errors

2002-01-17 Thread Robin Ericsson
On Thu, 2002-01-17 at 21:17, Ilia A. wrote: > You have the same script try open the shm segment 2 times, which is WRONG. > Here is a proper example of what you should be doing: > >define("SHMKEY", 0xDEAD); > define("SEMKEY", 0xCAFE); > > if( !($shm_id = shmop_open(SHMKEY, 'c'

[PHP-DEV] session problems with own session handler in php..

2002-01-17 Thread Robin Ericsson
This seems very similar to bug #14880. I use a session handler written in php, which I set with session_set_save_handler(). The problem is that my write function never gets called, and data never written. Variables are not stored when entered into $_SESSION, and I narroved it down to one settin

Re: [PHP-DEV] shmop errors

2002-01-17 Thread Robin Ericsson
On Thu, 2002-01-17 at 08:33, Robin Ericsson wrote: > On Wed, 2002-01-16 at 21:19, Ilia A. wrote: > > I've tested your code on 4.1.1 release with the recent SHMOP patch that is > > already part of the latest CVS. The code worked fine and did not generate any > > warning

Re: [PHP-DEV] shmop errors

2002-01-16 Thread Robin Ericsson
On Wed, 2002-01-16 at 21:19, Ilia A. wrote: > I've tested your code on 4.1.1 release with the recent SHMOP patch that is > already part of the latest CVS. The code worked fine and did not generate any > warning or errors. > > I did however commented out the sem_* functions. > That's funny, I'

[PHP-DEV] shmop errors

2002-01-16 Thread Robin Ericsson
I was playing with shmop ext today, and found out it was full of errors :) This is my code: Writing: define("SHMKEY", 0xDEAD); define("SEMKEY", 0xCAFE); $shm_id = @shmop_open(SHMKEY, "a", 0644, 10); if (!$shm_id) { $sem_id = sem_get(SEMKEY, 1, 0666); $shm_id = shmop

Re: [PHP-DEV] Bug #14593 Updated: configure fails with apxs

2002-01-15 Thread Robin Ericsson
On Tue, 2002-01-15 at 11:00, [EMAIL PROTECTED] wrote: > On Tue, 15 Jan 2002, Yasuo Ohgaki wrote: > > > Robin Ericsson wrote: > > > On Mon, 2002-01-14 at 12:43, Hartmut Holzgraefe wrote: > > > > > >>once again: shouldn't we introduce a new status

Re: [PHP-DEV] Bug #14593 Updated: configure fails with apxs

2002-01-15 Thread Robin Ericsson
On Mon, 2002-01-14 at 12:43, Hartmut Holzgraefe wrote: > [EMAIL PROTECTED] wrote: > > > ID: 14593 > > Updated by: lobbin > > Reported By: [EMAIL PROTECTED] > > Old Status: Feedback > > Status: Closed > > Bug Type: Apache related > > Operating System: AIX 4.3.3 > > PHP Version: 4.1.0 > > New Comme

[PHP-DEV] internal class, first impressions :)

2002-01-10 Thread Robin Ericsson
I've used testclass and domexl as reference, but they are not really working as I though they would :) What is the difference with INIT_CLASS_ENTRY, and INIT_OVERLOADED_CLASS_ENTRY? The problem for the moment is that I can get new operator to work on the class.. If I use OVERLOADED_CLASS_ENTRY,

[PHP-DEV] internal class..

2002-01-09 Thread Robin Ericsson
I'm browsing through the source to the domxml extension, to check how to define and use php class as there seem to be no documentation.. my question I guess is if there is any documentation at all how to use this, or should I check the source for help? best regards Robin -- PHP Development

Re: [PHP-DEV] PHP 4.1.1 for win

2002-01-03 Thread Robin Ericsson
> On Thu, 3 Jan 2002, Gabor Hojtsy wrote: > > > Hi! > > > > As the new year is over now, can someone be so kind > > to compile and release a PHP 4.1.1 for windows? > > Please also make the windows file names reflect > > the "standards". > > I"m upping them now, may take a while though. Are gd 1

[PHP-DEV] easter eggs?

2001-12-19 Thread Robin Ericsson
phpinfo.phtml?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 ^- the php logo phpinfo.phtml?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 ^- the zend logo phpinfo.phtml?=PHPE9568F36-D428-11d2-A769-00AA001ACF42 ^- who the hell is this guy? :) regards Robin -- PHP Development Mailing List

Re: [PHP-DEV] Bug #13764 Updated: No error in filename.phtml

2001-12-19 Thread Robin Ericsson
On Wed, 2001-12-19 at 15:31, [EMAIL PROTECTED] wrote: > ID: 13764 > User updated by: [EMAIL PROTECTED] > Reported By: [EMAIL PROTECTED] > Old Status: Feedback > Status: Open > Bug Type: *Directory/Filesystem functions > Operating System: WIN98 > PHP Version: 4.0.6 > New Comment: > > I can't use 4

[PHP-DEV] Bug: #14292, CRLF error with mail() on windows...

2001-12-19 Thread Robin Ericsson
What I can see of the error message, the user is using qmail as smtp server, and I've had some trouble myself with qmail. If the raw email data only contains bare LF, you get this message, and as far as I can see from the mail() code, there is no bare LF -> CRLF conversion in the message content.

Re: [PHP-DEV] Bug #13819 Updated: MSSQL+SYBASE won't work

2001-12-19 Thread Robin Ericsson
On Wed, 2001-12-19 at 04:27, [EMAIL PROTECTED] wrote: > > No, mssql_ functions wont work for sybase_ct. > I have recompiled php_sybase_ct.dll without mssql_ aliases. > Now I can use both mssql and sybase at the same time. > Another way of doing this might be to make some sort of ./configure o

[PHP-DEV] Bug #13227

2001-12-18 Thread Robin Ericsson
What to do in this case? I've checked the site, and it sends out wrong content-type (text/plain). Is there a list of people responsible for each mirror? br R. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

[PHP-DEV] bug: 12899

2001-12-18 Thread Robin Ericsson
Can someone with enough karma remove this url? Is this site even in CVS atm? regards R. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PRO

[PHP-DEV] CVS Account Request: lobbin

2001-12-13 Thread Robin Ericsson
To help out QA team with bugs database. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-DEV] emalloc_rel()

2001-08-31 Thread Robin Ericsson
in c++ and overloaded emalloc/efree to be able to detect memoryleaks. -- Robin Ericsson -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-DEV] bogus bugs...

2001-08-27 Thread Robin Ericsson
If I find bugs that are open, but are fixed, or bogus or whatever, should I report them somewhere? br Robin -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-

[PHP-DEV] contribute...

2001-08-27 Thread Robin Ericsson
Hi, If I want to join the PHP project, and start to contribute code etc, where is a good place to start? Check bugs-database and start fixing bugs? best regards Robin -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP-DEV] memory leaks in own extension

2001-07-30 Thread Robin Ericsson
nyway, the real problem is, I can't find out where the memoryleaks are, I've tried to overload new/delete functions to use emalloc/efree instead, but that didn't help me much. So, my question should be, is there any other way to detect memoryleaks within PHP? best regards... -- Ro