Re: [PHP-DEV] Memory allocation problems

2003-01-17 Thread Edin Kadribasic
 I have a script that allocates a lot of memory (huge associative
arrays).
 The problem is that this scripts bails out with fatal error
(emalloc
 unable to allocate 44 bytes) when I hit the limit of physical ram
in the
 machine. Swap never gets used. The machine has 1 GB of ram and 2
GB of
 swap space.


 I suppose you use some windows machine. I remember that all
application have
 only 1GB of RAM for their own until you have a windows server
version and that
 has an appropriate HAL and is configured to have more than 1gig.

Nope it's a RedHat Linux box. Just to make sure I've tried another
one, and there as well program quit after hitting the limit of
physical ram.

I also tried writing small C test program to verify that I wasn't
reaching some ulimit or kernel limitations, but it had no problems
mallocing 1.2 GB on the same box.

Edin


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




[PHP-DEV] Curl Linux Console String -- PHP Translation

2003-01-17 Thread Andrian Ivanov
Hi,

i have a curl string:

curl --casert CA.srt -E client.pem:huho8 -l https://...;

now, i've added all of the needed curl properties for the php
application(e.g. curl_setopt($connection,CURLOPT_PORT,9000) BUT i can't
find what's the name of the Curl CONSTANT matching the client's Public Key
file, if anybody can help me...

Regards, Andrian Ivanov



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




Re: [PHP-DEV] Curl Linux Console String -- PHP Translation

2003-01-17 Thread Derick Rethans
Hello,

please forward user questions to the [EMAIL PROTECTED]
mailinglist, this list is for development _OF_ PHP, not development
_with_ PHP.

Derick


On Fri, 17 Jan 2003, Andrian Ivanov wrote:

 Hi,
 
 i have a curl string:
 
 curl --casert CA.srt -E client.pem:huho8 -l https://...;
 
 now, i've added all of the needed curl properties for the php
 application(e.g. curl_setopt($connection,CURLOPT_PORT,9000) BUT i can't
 find what's the name of the Curl CONSTANT matching the client's Public Key
 file, if anybody can help me...
 
 Regards, Andrian Ivanov
 
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 

-
 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] [PATCH] jpeg2000 in php 4.3

2003-01-17 Thread Adam Wright
Have regenerated the diffs in unified format as well as fixed a minor bug in
the JP2 support. I've put together a small page at

http://www.j2g.org/php-dev/

It contains the patch, test script and a couple of example images in both
raw codestream and JP2 format.

adamw

- Original Message -
From: Marcus Börger [EMAIL PROTECTED]
To: Adam Wright [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 7:40 PM
Subject: Re: [PHP-DEV] jpeg2000 in php 4.3


 At 13:50 16.01.2003, Adam Wright wrote:
 I've completed a short patch which cleans up the JPEG 2000 raw codestream
 support (j2c, though I've renamed it jpeg2000 in the file for clarity)
in
 getimagesize. It also adds JP2 support. I've put a context diff of it
 against 4.3.x-dev from this morning up at...

 I have just updated my HEAD version and did a few changes and it works
 very well.

 Small changes have been made to ext/standard/php_image.h with 99% of the
 work in ext/standard/image.c. I've tried to apply CODING_STANDARDS, but
it's
 probable I've messed up somewhere so I'm happy to make any changes or
 regenerate the diffs in other formats.

 You did good coding and style (but we prefer unified diffs diff -u).

 If this gets applied, it might be worth adding something like the
following
 to the documentation.

 It will be but it is to be discussed if it will go into 4.3.1: I'd say yes
 because
 the note in the manual.

 Note that JPEG 2000 and JP2 are capable of having components with
differing
 bit depths. In this case, the value for bits is the highest bit depth
 encountered. Also, JP2 files can contain multiple JPEG 2000 codestreams.
In
 this case, getimagesize returns the values for the first codestream it
 encounters in the root of the file.

 Yes such a note may be useful.

 Hope it's useful.
 
 adamw
 [EMAIL PROTECTED]
 
 PS - I looked around but couldn't find any patch submission guidelines.
Is
 there a page people should read first?

 As said above diff -u is prefered.

 regards  thanks
 marcus

 by the way:could you send me a 1 x 1 jp2 file, because i am not able to
produce
 one my self?





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




[PHP-DEV] failure on tests output

2003-01-17 Thread modono
Failures report on php 4.3.0 make test.


=
FAILED TEST SUMMARY
-
Bug #21131: fopen($filename, a+) has broken position 
[ext/standard/tests/file/bug21131.phpt]
Simple math tests [ext/standard/tests/math/abs.phpt]
log() tests [ext/standard/tests/math/log.phpt]
Various pow() tests [ext/standard/tests/math/pow.phpt]
Simple math tests [ext/standard/tests/math/round.phpt]
Test strcspn() behavior [ext/standard/tests/strings/strcspn.phpt]
Test strspn() behavior [ext/standard/tests/strings/strspn.phpt]
microtime() function [ext/standard/tests/time/001.phpt]
strtotime() function [ext/standard/tests/time/002.phpt]
=


=
TEST RESULT SUMMARY
-
Exts skipped:   79
Exts tested :9
-
Number of tests :  443
Tests skipped   :  229 (51.7%)
Tests failed:9 ( 2.0%)
Tests passed:  205 (46.3%)
-
Time taken  :  926 seconds
=



/usr/users/mondonovan/devel/tsunami/php-4.3.0/ext/standard/tests/file/bug21131.phpt


 EXPECTED OUTPUT
int(6)
int(0)
foobar
 ACTUAL OUTPUT
int(0)
int(0)
foobar
 FAILED


001- int(6)

001+ int(0)





/usr/users/mondonovan/devel/tsunami/php-4.3.0/ext/standard/tests/math/abs.phpt


 EXPECTED OUTPUT
1,1,0,0
OK
 ACTUAL OUTPUT
1,1,1,1

Assert failed:
-LONG_MIN+1 === abs(LONG_MIN-1)
Left:  int(-9223372036854775807)
Right: int(9223372036854775807)

Assert failed:
-LONG_MIN   === abs(LONG_MIN)
Left:  int(-9223372036854775808)
Right: float(9.2233720368548E+18)
 FAILED


001- 1,1,0,0

001+ 1,1,1,1

002- OK

002+ 

003+ Assert failed:

004+ -LONG_MIN+1 === abs(LONG_MIN-1)

005+ Left:  int(-9223372036854775807)

006+ Right: int(9223372036854775807)

007+ 

008+ Assert failed:

009+ -LONG_MIN   === abs(LONG_MIN)

010+ Left:  int(-9223372036854775808)

011+ Right: float(9.2233720368548E+18)





/usr/users/mondonovan/devel/tsunami/php-4.3.0/ext/standard/tests/math/log.phpt


 EXPECTED OUTPUT
On failure, please mail result to [EMAIL PROTECTED]
200
50
50
50
50
50
50
50
50
50
 ACTUAL OUTPUT
On failure, please mail result to [EMAIL PROTECTED]
200
 FAILED


003- 50

004- 50

005- 50

006- 50

007- 50

008- 50

009- 50

010- 50

011- 50





/usr/users/mondonovan/devel/tsunami/php-4.3.0/ext/standard/tests/math/pow.phpt


 EXPECTED OUTPUT
1,1,0,0
On failure, please mail result to [EMAIL PROTECTED]
OK
 ACTUAL OUTPUT
1,1,1,1
On failure, please mail result to [EMAIL PROTECTED]

Assert failed:
 TRUE === is_infinite(pow(0,-2))
Left:  bool(true)
Right: bool(false)

Assert failed:
 TRUE === is_infinite(pow(0,-1))
Left:  bool(true)
Right: bool(false)

Assert failed:
 TRUE === is_infinite(pow(0,-2.0))
Left:  bool(true)
Right: bool(false)

Assert failed:
 TRUE === is_infinite(pow(0,-1.0))
Left:  bool(true)
Right: bool(false)

Assert failed:
 TRUE === is_infinite(pow(0.0,-2.0))
Left:  bool(true)
Right: bool(false)

Assert failed:
 TRUE === is_infinite(pow(0.0,-1.0))
Left:  bool(true)
Right: bool(false)

Assert failed:
 TRUE === is_infinite(pow( 0.0,-2))
Left:  bool(true)
Right: bool(false)

Assert failed:
 TRUE === is_infinite(pow( 0.0,-1))
Left:  bool(true)
Right: bool(false)

Assert failed:
LONG_MAX-1 === pow(LONG_MAX-1,1)
Left:  int(9223372036854775806)

Re: [PHP-DEV] [PATCH] jpeg2000 in php 4.3

2003-01-17 Thread Marcus Börger
At 10:52 17.01.2003, Adam Wright wrote:

Have regenerated the diffs in unified format as well as fixed a minor bug in
the JP2 support. I've put together a small page at

http://www.j2g.org/php-dev/

It contains the patch, test script and a couple of example images in both
raw codestream and JP2 format.



thanks again.

I have reworked the patch a little bit and commited it to HEAD (what's to 
become
PHP 5.0.0). Please send any further patches only against that version. For the
4.3.1 version i will add the necessary changes for jpc - the rest we may 
see - part
of it is new functionality.

marcus


--
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/gd gd.c /ext/gd/libgd gd.c gd.h gd_gd2.c gd_jpeg.c

2003-01-17 Thread Ilia A.
On January 17, 2003 03:31 pm, Pierre-Alain Joye wrote:
 MFH'ing this commit should be a good thing.

 pierre

Indeed, new GD introduces some functionality that is likely to make PHP 
generate invalid gd2 images, due to format not being specified. If no one has 
any objections I will MFH this commit into the 4.3.1 release.

Ilia

-- 
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/gd gd.c /ext/gd/libgd gd.c gd.hgd_gd2.c gd_jpeg.c

2003-01-17 Thread Pierre-Alain Joye
On Fri, 17 Jan 2003 18:34:07 -
Ilia Alshanetsky [EMAIL PROTECTED] wrote:

 iliaa Fri Jan 17 13:34:07 2003 EDT
 
   Modified files:  
 /php4/ext/gd  gd.c 
 /php4/ext/gd/libgdgd.c gd.h gd_gd2.c gd_jpeg.c 
   Log:
   Syncronize bundled GD library with latest GD (2.0.11).
   
   

MFH'ing this commit should be a good thing.

pierre

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




[PHP-DEV] sapi/embed ?

2003-01-17 Thread Brian Moon
I just noticed sapi/embed.  Where can I find out more about what this is?  I
am hoping it is a sapi that will create a generic library that can be used
from any C application.  Is this true?

Brian Moon
dealnews.com




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