#41675 [Com]: memory being exhausted easily

2007-06-19 Thread informatica at diputacionavila dot es
 ID:   41675
 Comment by:   informatica at diputacionavila dot es
 Reported By:  wiggum24 at gmail dot com
 Status:   Open
 Bug Type: Performance problem
 Operating System: Redhat Enterprise Linux 4
 PHP Version:  5.2.3
 New Comment:

I have the same issue since version 5.2.1, 5.2.0 works fine with memory
limit 8M. Here is a script that needs a photo named temp.jpg (min size
2272x1704pixels):

?php

function foto() {

$f = ImageCreateFromJpeg(temp.jpg);
list($A,$L) = GetImageSize(temp.jpg);

$i = ImageCreateTrueColor(800,600);
ImageCopyResized($i,$f,0,0,0,0,800,600,$A,$L);

ImageInterlace($i,1);
ImageJpeg($i,foto.jpg,85);
ImageDestroy($i);
ImageDestroy($f);
}

foto();
echo img src='temp.jpg' width=400px hr img src='foto.jpg'
width=400px;

?


Previous Comments:


[2007-06-13 23:53:58] wiggum24 at gmail dot com

I've done a bit of fiddling with while loops concatenating strings,
they seem to act relatively consistently and halt correctly with errors
in the right places. I suspect it's something in the db layer, but it's
only a hunch and I can't really be more concise.

It shows up when you pull a few too many tuples out of a database which
could sound like the developer's doing something silly, but the apps
were working well with an 8 meg limit in 5.1.*

An increase didn't suprise me, it was really the magnitude of the
increase that caused concern.

Sorry I can't be of more help :( Someone else may be able to provide
you with better information, but in the interim I figured it doesn't
hurt to help establish a pattern. You're welcome to close this report.



[2007-06-13 07:49:38] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ?php and ends with ?,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



[2007-06-13 00:34:35] wiggum24 at gmail dot com

Description:

Since upgrading from 5.1.? to 5.2.3, we're having problems with memory
limits being exhausted, we never encountered this problem previously.

Our memory_limit on all production servers was set to 8 meg and we
never had a problem, after this upgrade I've knocked it up to 64 meg and
we're still having problems with some scripts. Some instances give
memory limit exhausted, the scripts just stops without generating an
error in other instances.

Error is reproducable, the same scripts stop consistently. Pulling a
large recordset out of a database is usually the culprit, but it happens
with both MS SQL server and Postgres.

I've done a bit of googling, other people are experiencing this
inflated memory requirement problem.

Reproduce code:
---
$sql=SELECT * FROM blah WHERE foo=1;
$rs=$db-query($sql);

Expected result:

For it to return my recordset :)

Actual result:
--
Either:
- script stops mid execution without error
- generates memory limit exhausted error





-- 
Edit this bug report at http://bugs.php.net/?id=41675edit=1


#33489 [Bgs-Opn]: Certain true type fonts shows squares instead of text

2005-07-28 Thread informatica at diputacionavila dot es
 ID:   33489
 User updated by:  informatica at diputacionavila dot es
 Reported By:  informatica at diputacionavila dot es
-Status:   Bogus
+Status:   Open
 Bug Type: GD related
 Operating System: Linux Fedora Core 2
 PHP Version:  5.1.0b2
 Assigned To:  pajoye
 New Comment:

First of all thaks a lot for your time and patient. Just one question
more ¿Why this fonts works fine in previous versions to 5.0.3 (=
5.0.2)?
I have done a test showing four fonts, in my server with php5.0.2 this
is the result http://www.diputacionavila.es/xgarbage/gif4.php, and my
server with php5.1.0b2 shows this:
http://rh.homelinux.net/xgarbage/gif4.php

Thanks again


Previous Comments:


[2005-07-27 16:58:47] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

None of these are somehow valid. Better said they completely broken.
The only who do not raise a direct error is weather.

I used freetype directly and various freetype debug tools.

Fix your fonts, sorry.

--Pierre



[2005-07-26 09:18:00] informatica at diputacionavila dot es

Here you have links to some problematic fonts
http://www.diputacionavila.es/weather.ttf
http://www.diputacionavila.es/vacation.ttf
http://www.diputacionavila.es/wingdng3.ttf
http://www.diputacionavila.es/zaf.ttf
If you need anything else...



[2005-07-23 18:47:18] [EMAIL PROTECTED]

Please provide a link to the ttf fonts causing problems. I may try to
allow broken fonts. But only if the changes will not break well defined
fonts.

--Pierre



[2005-06-28 09:08:25] [EMAIL PROTECTED]

Pierre, you broke this? :)




[2005-06-28 08:26:30] informatica at diputacionavila dot es

Freetype libs are the same in both systems. I have also tryed other
versions of freetype. I'm talking about php 5.0.3 and beyond, so I've
tested it in 5.0.3, 5.0.4 and 5.1.0b2 whith the same result. If I get
back to 5.0.2 it works fine.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/33489

-- 
Edit this bug report at http://bugs.php.net/?id=33489edit=1


#33489 [Fbk-Opn]: Certain true type fonts shows squares instead of text

2005-07-26 Thread informatica at diputacionavila dot es
 ID:   33489
 User updated by:  informatica at diputacionavila dot es
 Reported By:  informatica at diputacionavila dot es
-Status:   Feedback
+Status:   Open
 Bug Type: GD related
 Operating System: Linux Fedora Core 2
 PHP Version:  5.1.0b2
 Assigned To:  pajoye
 New Comment:

Here you have links to some problematic fonts
http://www.diputacionavila.es/weather.ttf
http://www.diputacionavila.es/vacation.ttf
http://www.diputacionavila.es/wingdng3.ttf
http://www.diputacionavila.es/zaf.ttf
If you need anything else...


Previous Comments:


[2005-07-23 18:47:18] [EMAIL PROTECTED]

Please provide a link to the ttf fonts causing problems. I may try to
allow broken fonts. But only if the changes will not break well defined
fonts.

--Pierre



[2005-06-28 09:08:25] [EMAIL PROTECTED]

Pierre, you broke this? :)




[2005-06-28 08:26:30] informatica at diputacionavila dot es

Freetype libs are the same in both systems. I have also tryed other
versions of freetype. I'm talking about php 5.0.3 and beyond, so I've
tested it in 5.0.3, 5.0.4 and 5.1.0b2 whith the same result. If I get
back to 5.0.2 it works fine.



[2005-06-27 14:29:25] [EMAIL PROTECTED]

..and the underlying freetype libs, etc. are the same in both systems?
And you're reporting this bug to be in 5.1b2, even as you only talk
about 5.0.2 / 3..so REALLY try the b2 before reporting something..




[2005-06-27 13:47:21] informatica at diputacionavila dot es

Description:

Certain true type fonts shows squares instead of text. Common fonts
works fine (Times, Arial...) and some symbol fonts too. But weather.tff
don't. You can download the font from www.diputacionavila.es/weather.ttf

Reproduce code:
---
?php 
Header(Content-type: image/png); 
$gif = ImageCreate(200,200); 
$bg =  ImageColorAllocate($gif,22,222,2); 
$ellipse = ImageColorAllocate($gif,2,200,200); 
$tx = ImageColorAllocate($gif,255,255,128); 
ImageFilledRectangle($gif,0,0,200,200,$bg); 
$black = imagecolorallocate($gif, 0,0,0);
ImageTtfText ($gif, 20, 0, 0, 90, $black,
/weather.ttf,123ABCabc...);
ImagePNG($gif); 
? 


Expected result:

This is what I see in php5.0.2
http://www.diputacionavila.es/xgarbage/gif3.php

Actual result:
--
This is what I see in php5.0.3 and beyond
http://rh.homelinux.net/xgarbage/gif3.php





-- 
Edit this bug report at http://bugs.php.net/?id=33489edit=1



#33489 [Bgs]: Certain true type fonts shows squares instead of text

2005-06-28 Thread informatica at diputacionavila dot es
 ID:   33489
 User updated by:  informatica at diputacionavila dot es
 Reported By:  informatica at diputacionavila dot es
 Status:   Bogus
 Bug Type: GD related
 Operating System: Linux Fedora Core 2
 PHP Version:  5.1.0b2
 New Comment:

Freetype libs are the same in both systems. I have also tryed other
versions of freetype. I'm talking about php 5.0.3 and beyond, so I've
tested it in 5.0.3, 5.0.4 and 5.1.0b2 whith the same result. If I get
back to 5.0.2 it works fine.


Previous Comments:


[2005-06-27 14:29:25] [EMAIL PROTECTED]

..and the underlying freetype libs, etc. are the same in both systems?
And you're reporting this bug to be in 5.1b2, even as you only talk
about 5.0.2 / 3..so REALLY try the b2 before reporting something..




[2005-06-27 13:47:21] informatica at diputacionavila dot es

Description:

Certain true type fonts shows squares instead of text. Common fonts
works fine (Times, Arial...) and some symbol fonts too. But weather.tff
don't. You can download the font from www.diputacionavila.es/weather.ttf

Reproduce code:
---
?php 
Header(Content-type: image/png); 
$gif = ImageCreate(200,200); 
$bg =  ImageColorAllocate($gif,22,222,2); 
$ellipse = ImageColorAllocate($gif,2,200,200); 
$tx = ImageColorAllocate($gif,255,255,128); 
ImageFilledRectangle($gif,0,0,200,200,$bg); 
$black = imagecolorallocate($gif, 0,0,0);
ImageTtfText ($gif, 20, 0, 0, 90, $black,
/weather.ttf,123ABCabc...);
ImagePNG($gif); 
? 


Expected result:

This is what I see in php5.0.2
http://www.diputacionavila.es/xgarbage/gif3.php

Actual result:
--
This is what I see in php5.0.3 and beyond
http://rh.homelinux.net/xgarbage/gif3.php





-- 
Edit this bug report at http://bugs.php.net/?id=33489edit=1


#33489 [Bgs-Opn]: Certain true type fonts shows squares instead of text

2005-06-28 Thread informatica at diputacionavila dot es
 ID:   33489
 User updated by:  informatica at diputacionavila dot es
 Reported By:  informatica at diputacionavila dot es
-Status:   Bogus
+Status:   Open
 Bug Type: GD related
 Operating System: Linux Fedora Core 2
 PHP Version:  5.1.0b2
 New Comment:

Freetype libs are the same in both systems. I have also tryed other
versions of freetype. I'm talking about php 5.0.3 and beyond, so I've
tested it in 5.0.3, 5.0.4 and 5.1.0b2 whith the same result. If I get
back to 5.0.2 it works fine.


Previous Comments:


[2005-06-28 08:26:30] informatica at diputacionavila dot es

Freetype libs are the same in both systems. I have also tryed other
versions of freetype. I'm talking about php 5.0.3 and beyond, so I've
tested it in 5.0.3, 5.0.4 and 5.1.0b2 whith the same result. If I get
back to 5.0.2 it works fine.



[2005-06-27 14:29:25] [EMAIL PROTECTED]

..and the underlying freetype libs, etc. are the same in both systems?
And you're reporting this bug to be in 5.1b2, even as you only talk
about 5.0.2 / 3..so REALLY try the b2 before reporting something..




[2005-06-27 13:47:21] informatica at diputacionavila dot es

Description:

Certain true type fonts shows squares instead of text. Common fonts
works fine (Times, Arial...) and some symbol fonts too. But weather.tff
don't. You can download the font from www.diputacionavila.es/weather.ttf

Reproduce code:
---
?php 
Header(Content-type: image/png); 
$gif = ImageCreate(200,200); 
$bg =  ImageColorAllocate($gif,22,222,2); 
$ellipse = ImageColorAllocate($gif,2,200,200); 
$tx = ImageColorAllocate($gif,255,255,128); 
ImageFilledRectangle($gif,0,0,200,200,$bg); 
$black = imagecolorallocate($gif, 0,0,0);
ImageTtfText ($gif, 20, 0, 0, 90, $black,
/weather.ttf,123ABCabc...);
ImagePNG($gif); 
? 


Expected result:

This is what I see in php5.0.2
http://www.diputacionavila.es/xgarbage/gif3.php

Actual result:
--
This is what I see in php5.0.3 and beyond
http://rh.homelinux.net/xgarbage/gif3.php





-- 
Edit this bug report at http://bugs.php.net/?id=33489edit=1


#33489 [NEW]: Certain true type fonts shows squares instead of text

2005-06-27 Thread informatica at diputacionavila dot es
From: informatica at diputacionavila dot es
Operating system: Linux Fedora Core 2
PHP version:  5.1.0b2
PHP Bug Type: GD related
Bug description:  Certain true type fonts shows squares instead of text

Description:

Certain true type fonts shows squares instead of text. Common fonts works
fine (Times, Arial...) and some symbol fonts too. But weather.tff don't.
You can download the font from www.diputacionavila.es/weather.ttf

Reproduce code:
---
?php 
Header(Content-type: image/png); 
$gif = ImageCreate(200,200); 
$bg =  ImageColorAllocate($gif,22,222,2); 
$ellipse = ImageColorAllocate($gif,2,200,200); 
$tx = ImageColorAllocate($gif,255,255,128); 
ImageFilledRectangle($gif,0,0,200,200,$bg); 
$black = imagecolorallocate($gif, 0,0,0);
ImageTtfText ($gif, 20, 0, 0, 90, $black, /weather.ttf,123ABCabc...);
ImagePNG($gif); 
? 


Expected result:

This is what I see in php5.0.2
http://www.diputacionavila.es/xgarbage/gif3.php

Actual result:
--
This is what I see in php5.0.3 and beyond
http://rh.homelinux.net/xgarbage/gif3.php

-- 
Edit bug report at http://bugs.php.net/?id=33489edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33489r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33489r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33489r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=33489r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=33489r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=33489r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=33489r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=33489r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33489r=support
Expected behavior:   http://bugs.php.net/fix.php?id=33489r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=33489r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=33489r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=33489r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33489r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=33489r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=33489r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33489r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33489r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=33489r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33489r=mysqlcfg


#31311 [NEW]: getting all rectangles instead of text in some true type fonts

2004-12-27 Thread informatica at diputacionavila dot es
From: informatica at diputacionavila dot es
Operating system: Fedora core 2
PHP version:  5.0.3
PHP Bug Type: GD related
Bug description:  getting all rectangles instead of text in some true type fonts

Description:

After updating from php-5.0.2 to php-5.0.3 some true type fonts show
rectangles instead of text

My configure command is:

'./configure' '--with-apxs=/apache/bin/apxs' '--with-gd'
'--with-zlib-dir=/usr/local' '--with-png-dir=/usr/local'
'--with-jpeg-dir=/usr/local' '--with-freetype-dir=/usr/local'
'--enable-track-vars' '--enable-calendar' '--enable-exif' '--with-imagick'
'--with-unixODBC' '--with-mysql=/usr/local/mysql'

Reproduce code:
---
?php 
Header(Content-type: image/png); 
$gif = ImageCreate(200,200); 
$bg =  ImageColorAllocate($gif,22,222,2); 
$ellipse = ImageColorAllocate($gif,2,200,200); 
$tx = ImageColorAllocate($gif,255,255,128); 
ImageFilledRectangle($gif,0,0,200,200,$bg); 
//ImageString($gif,113,70,90,it works !,$tx); 
$black = imagecolorallocate($gif, 0,0,0);
ImageTtfText ($gif, 20, 0, 0, 90, $black,
/font/weather.ttf,123ABCabc...);
ImagePNG($gif); 
? 


Expected result:

Expected result is what you can see at my server with php-5.0.2

http://www.diputacionavila.es/xgarbage/gif3.php

Actual result:
--
Actual result is what you can see at my server with php-5.0.3

http://rh.homelinux.net/xgarbage/gif3.php

-- 
Edit bug report at http://bugs.php.net/?id=31311edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31311r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31311r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31311r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=31311r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=31311r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=31311r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=31311r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=31311r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31311r=support
Expected behavior:   http://bugs.php.net/fix.php?id=31311r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=31311r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=31311r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=31311r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31311r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=31311r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=31311r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31311r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31311r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=31311r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31311r=mysqlcfg