Bug #51315 [Com]: imagettfbbox randomly don't work

2010-08-03 Thread administrateur at exinsidephp dot com
Edit report at http://bugs.php.net/bug.php?id=51315&edit=1

 ID: 51315
 Comment by: administrateur at exinsidephp dot com
 Reported by:administrateur at exinsidephp dot com
 Summary:imagettfbbox randomly don't work
 Status: Assigned
 Type:   Bug
 Package:GD related
 Operating System:   Debian GNU/Linux 5.0
 PHP Version:5.3.2
 Assigned To:pajoye
 Block user comment: N

 New Comment:

I have upgrade my server for install DotDeb package with PHP 5.3.3
(apt-get update && apt-get ugrade) and the problem have disapear with
this release.


Previous Comments:

[2010-07-17 20:50:47] geiss...@php.net

According to Sean, this appears to be a bug in libgd that has been fixed
in the 

copy included by PHP but not at upstream. I'm afraid I don't know any
other 

detail.

Pierre, could you please take a look at it? (and if possible, update
libgd 

upstream :)


[2010-05-01 17:29:47] geiss...@php.net

I tried with the following versions and with all of them the result is
the same:

4.1.2, 4.2.4, 4.3.4, 4.4.3



So it's a bug on libgd's side. Will ask Sean as he is the maintainer at
Debian.


[2010-03-23 20:59:14] geiss...@php.net

Strange that you mention that it works with gcc 4.1.2. Last I heard
5.3.x failed to build with that version (don't know what arch was that,
though).



Will take a look at it later. FWIW, a test related to imagettfbbox is
reproducibly failing (with the same results on all archs):



ext/gd/tests/bug48801.log:

 EXPECTED OUTPUT

(-1, 15)

(155, 15)

(155, -48)

(-1, -48)

 ACTUAL OUTPUT

(1, 15)

(163, 15)

(163, -48)

(1, -48)

 FAILED



And that was with 4.4.3 (same results without optimisation). Has anyone
tried to reproduce it with the same or similar versions of gcc from
another distribution?


[2010-03-23 15:04:59] paj...@php.net

Raphael, can you take a look at this one please?

--------
[2010-03-23 14:52:53] administrateur at exinsidephp dot com

So I have find the origin of the problem : "GCC".



This problem appear if you compile PHP 5.3.2 width GCC 4.3.2 on Debian
32 bits. For fix the problem you must compile PHP 5.3.2 width GCC 4.1.2.




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/bug.php?id=51315


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


[PHP-BUG] Bug #51315 [NEW]: imagettfbbox randomly don't work

2010-03-17 Thread administrateur at exinsidephp dot com
From: 
Operating system: Debian GNU/Linux 5.0
PHP version:  5.3.2
Package:  GD related
Bug Type: Bug
Bug description:imagettfbbox randomly don't work

Description:

Hi,



I have ugraded PHP 5.2 to PHP 5.3.2 on my Debian server and I have found a
bug width ths function imagettfbbox.



Sometimes the text don't show on the image generated :



http://www.exinsidephp.com/cache/example.png



If I refresh the page (Ctrl+F5) another image don't display the text :



http://www.exinsidephp.com/cache/example2.png



Any error on PHP Blog, any error on syslog or kernel log... I haven't find
any trace of error. Someone have the same issue ?



The PHP Package come from http://www.dotdeb.org/ website. The list of
modules installed (dpkg -l | grep php5) :



ii  libapache2-mod-php5 5.3.2-0.dotdeb.1   


ii  php5 5.3.2-0.dotdeb.1  
 

ii  php5-cli5.3.2-0.dotdeb.1   


ii  php5-common 5.3.2-0.dotdeb.1   


ii  php5-curl   5.3.2-0.dotdeb.1   


ii  php5-dev5.3.2-0.dotdeb.1   


ii  php5-gd 5.3.2-0.dotdeb.1   


ii  php5-geoip  5.3.2-0.dotdeb.1   


ii  php5-imagick5.3.2-0.dotdeb.1   


ii  php5-imap   5.3.2-0.dotdeb.1   


ii  php5-mcrypt 5.3.2-0.dotdeb.1   


ii  php5-mysql  5.3.2-0.dotdeb.1   


ii  php5-suhosin5.3.2-0.dotdeb.1   


ii  php5-xcache 5.3.2-0.dotdeb.1   


Test script:
---
header('Cache-Control: no-store, no-cache, must-revalidate');

header('Cache-Control: post-check=0, pre-check=0', false);

header('Pragma: no-cache');

header('Content-Type: image/png');



$image = imagecreate(55,15);

imagecolorallocate($image, 0,0,0);



if($get->getValue('temp2'))

$texte = $get->getValue('temp1').'/'.$get->getValue('temp2').' °C';

else

$texte = $get->getValue('temp1').' °C';



$tab = imagettfbbox(8,0,Config::getCons('PATH_CACHE').'font/verdana.TTF',
$texte);

$text_x = (55-($tab[2]-$tab[6]))/2;

$text_y = (15-($tab[1]-$tab[5]))/2+9;



//$color = imagecolorallocate($image, 2,119,186);

$color = imagecolorallocate($image, 255,255,255);

imagettftext($image,8,0,$text_x,$text_y,$color,Config::getCons('PATH_CACHE').'font/verdana.TTF',$texte);



imagepng($image);


-- 
Edit bug report at http://bugs.php.net/bug.php?id=51315&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=51315&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=51315&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=51315&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=51315&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51315&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=51315&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=51315&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=51315&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=51315&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=51315&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=51315&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=51315&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=51315&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=51315&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=51315&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=51315&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=51315&r=isapi
Install GNU Sed: 
http://b

Bug #51315 [Opn]: imagettftext randomly don't work

2010-03-19 Thread administrateur at exinsidephp dot com
Edit report at http://bugs.php.net/bug.php?id=51315&edit=1

 ID:   51315
 User updated by:  administrateur at exinsidephp dot com
 Reported by:  administrateur at exinsidephp dot com
-Summary:  imagettfbbox randomly don't work
+Summary:  imagettftext randomly don't work
 Status:   Open
 Type: Bug
 Package:  GD related
 Operating System: Debian GNU/Linux 5.0
 PHP Version:  5.3.2

 New Comment:

Change title of bug


Previous Comments:

[2010-03-17 20:55:28] administrateur at exinsidephp dot com

Description:

Hi,



I have ugraded PHP 5.2 to PHP 5.3.2 on my Debian server and I have found
a bug width ths function imagettfbbox.



Sometimes the text don't show on the image generated :



http://www.exinsidephp.com/cache/example.png



If I refresh the page (Ctrl+F5) another image don't display the text :



http://www.exinsidephp.com/cache/example2.png



Any error on PHP Blog, any error on syslog or kernel log... I haven't
find any trace of error. Someone have the same issue ?



The PHP Package come from http://www.dotdeb.org/ website. The list of
modules installed (dpkg -l | grep php5) :



ii  libapache2-mod-php5 5.3.2-0.dotdeb.1
   

ii  php5 5.3.2-0.dotdeb.1   


ii  php5-cli5.3.2-0.dotdeb.1
   

ii  php5-common 5.3.2-0.dotdeb.1
   

ii  php5-curl   5.3.2-0.dotdeb.1
   

ii  php5-dev5.3.2-0.dotdeb.1
   

ii  php5-gd 5.3.2-0.dotdeb.1
   

ii  php5-geoip  5.3.2-0.dotdeb.1
   

ii  php5-imagick5.3.2-0.dotdeb.1
   

ii  php5-imap   5.3.2-0.dotdeb.1
   

ii  php5-mcrypt 5.3.2-0.dotdeb.1
   

ii  php5-mysql  5.3.2-0.dotdeb.1
   

ii  php5-suhosin5.3.2-0.dotdeb.1
   

ii  php5-xcache 5.3.2-0.dotdeb.1
   

Test script:
---
header('Cache-Control: no-store, no-cache, must-revalidate');

header('Cache-Control: post-check=0, pre-check=0', false);

header('Pragma: no-cache');

header('Content-Type: image/png');



$image = imagecreate(55,15);

imagecolorallocate($image, 0,0,0);



if($get->getValue('temp2'))

$texte = $get->getValue('temp1').'/'.$get->getValue('temp2').' °C';

else

$texte = $get->getValue('temp1').' °C';



$tab =
imagettfbbox(8,0,Config::getCons('PATH_CACHE').'font/verdana.TTF',
$texte);

$text_x = (55-($tab[2]-$tab[6]))/2;

$text_y = (15-($tab[1]-$tab[5]))/2+9;



//$color = imagecolorallocate($image, 2,119,186);

$color = imagecolorallocate($image, 255,255,255);

imagettftext($image,8,0,$text_x,$text_y,$color,Config::getCons('PATH_CACHE').'font/verdana.TTF',$texte);



imagepng($image);







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


Bug #51315 [Opn]: imagettftext randomly don't work

2010-03-19 Thread administrateur at exinsidephp dot com
Edit report at http://bugs.php.net/bug.php?id=51315&edit=1

 ID:   51315
 User updated by:  administrateur at exinsidephp dot com
 Reported by:  administrateur at exinsidephp dot com
 Summary:  imagettftext randomly don't work
 Status:   Open
 Type: Bug
 Package:  GD related
 Operating System: Debian GNU/Linux 5.0
 PHP Version:  5.3.2

 New Comment:

So I have add debug line and i find origin of bug :



View my previous script an modify width this line :



$tab =
imagettfbbox(8,0,Config::getCons('PATH_CACHE').'font/verdana.TTF',
$texte);

$text_x = (55-($tab[2]-$tab[6]))/2;

$text_y = (15-($tab[1]-$tab[5]))/2+9;



file_put_contents(Config::getCons('PATH_CACHE').'log_font.txt', $text.'
x:'.$text_x.' y:'.$text_y.'
imagbox:'.json_encode($tab)."\n",FILE_APPEND);





The result : 



 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:33554459 y:12.5
imagbox:[-1,-1,-33554433,-1,-33554433,-9,33554430,-9]

 x:33554459 y:12.5
imagbox:[-1,-1,-33554433,-1,-33554433,-9,33554430,-9]

 x:33554459 y:12.5
imagbox:[-1,-1,-33554433,-1,-33554433,-9,33554430,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:33554459 y:12.5
imagbox:[-1,-1,-33554433,-1,-33554433,-9,33554430,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]



So the problem is located on imagettfbbox funtion, it give wrong value
for x position.


Previous Comments:
--------------------
[2010-03-19 16:26:47] administrateur at exinsidephp dot com

Change title of bug

--------------------
[2010-03-17 20:55:28] administrateur at exinsidephp dot com

Description:

Hi,



I have ugraded PHP 5.2 to PHP 5.3.2 on my Debian server and I have found
a bug width ths function imagettfbbox.



Sometimes the text don't show on the image generated :



http://www.exinsidephp.com/cache/example.png



If I refresh the page (Ctrl+F5) another image don't display the text :



http://www.exinsidephp.com/cache/example2.png



Any error on PHP Blog, any error on syslog or kernel log... I haven't
find any trace of error. Someone have the same issue ?



The PHP Package come from http://www.dotdeb.org/ website. The list of
modules installed (dpkg -l | grep php5) :



ii  libapache2-mod-php5 5.3.2-0.dotdeb.1
   

ii  php5 5.3.2-0.dotdeb.1   


ii  php5-cli5.3.2-0.dotdeb.1
   

ii  php5-common 5.3.2-0.dotdeb.1
   

ii  php5-curl   5.3.2-0.dotdeb.1
   

ii  php5-dev5.3.2-0.dotdeb.1
   

ii  php5-gd 5.3.2-0.dotdeb.1
   

ii  php5-geoip  5.3.2-0.dotdeb.1
   

ii  php5-imagick5.3.2-0.dotdeb.1
   

ii  php5-imap   5.3.2-0.dotdeb.1
   

ii  php5-mcrypt 5.3.2-0.dotdeb.1
   

ii  php5-mysql  5.3.2-0.dotdeb.1
   

ii  php5-suhosin5.3.2-0.dotdeb.1
   

ii  php5-xcache 5.3.2-0.dotdeb.1
   

Test script:
---
header('Cache-Control: no-store, no-cache, must-revalidate');

header('Cache-Control: post-check=0, pre-check=0', false);

header('Pragma: no-cache');

header('Content-Type: image/png');



$image = imagecreate(55,15);

imagecolorallocate($image, 0,0,0);



if($get->getValue('temp2'))

$texte = $get->getValue('temp1').'/'.$get->getValue('temp2').' °C';

else

$texte = $get->getValue('temp1').' °C';



$tab =
imagett

Bug #51315 [Opn]: imagettfbbox randomly don't work

2010-03-19 Thread administrateur at exinsidephp dot com
Edit report at http://bugs.php.net/bug.php?id=51315&edit=1

 ID:   51315
 User updated by:  administrateur at exinsidephp dot com
 Reported by:  administrateur at exinsidephp dot com
-Summary:  imagettftext randomly don't work
+Summary:  imagettfbbox randomly don't work
 Status:   Open
 Type: Bug
 Package:  GD related
 Operating System: Debian GNU/Linux 5.0
 PHP Version:  5.3.2

 New Comment:

rechange title


Previous Comments:

[2010-03-19 16:35:50] administrateur at exinsidephp dot com

So I have add debug line and i find origin of bug :



View my previous script an modify width this line :



$tab =
imagettfbbox(8,0,Config::getCons('PATH_CACHE').'font/verdana.TTF',
$texte);

$text_x = (55-($tab[2]-$tab[6]))/2;

$text_y = (15-($tab[1]-$tab[5]))/2+9;



file_put_contents(Config::getCons('PATH_CACHE').'log_font.txt', $text.'
x:'.$text_x.' y:'.$text_y.'
imagbox:'.json_encode($tab)."\n",FILE_APPEND);





The result : 



 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:33554459 y:12.5
imagbox:[-1,-1,-33554433,-1,-33554433,-9,33554430,-9]

 x:33554459 y:12.5
imagbox:[-1,-1,-33554433,-1,-33554433,-9,33554430,-9]

 x:33554459 y:12.5
imagbox:[-1,-1,-33554433,-1,-33554433,-9,33554430,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:33554459 y:12.5
imagbox:[-1,-1,-33554433,-1,-33554433,-9,33554430,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]



So the problem is located on imagettfbbox funtion, it give wrong value
for x position.

--------------------
[2010-03-19 16:26:47] administrateur at exinsidephp dot com

Change title of bug

--------------------
[2010-03-17 20:55:28] administrateur at exinsidephp dot com

Description:

Hi,



I have ugraded PHP 5.2 to PHP 5.3.2 on my Debian server and I have found
a bug width ths function imagettfbbox.



Sometimes the text don't show on the image generated :



http://www.exinsidephp.com/cache/example.png



If I refresh the page (Ctrl+F5) another image don't display the text :



http://www.exinsidephp.com/cache/example2.png



Any error on PHP Blog, any error on syslog or kernel log... I haven't
find any trace of error. Someone have the same issue ?



The PHP Package come from http://www.dotdeb.org/ website. The list of
modules installed (dpkg -l | grep php5) :



ii  libapache2-mod-php5 5.3.2-0.dotdeb.1
   

ii  php5 5.3.2-0.dotdeb.1   


ii  php5-cli5.3.2-0.dotdeb.1
   

ii  php5-common 5.3.2-0.dotdeb.1
   

ii  php5-curl   5.3.2-0.dotdeb.1
   

ii  php5-dev5.3.2-0.dotdeb.1
   

ii  php5-gd 5.3.2-0.dotdeb.1
   

ii  php5-geoip  5.3.2-0.dotdeb.1
   

ii  php5-imagick5.3.2-0.dotdeb.1
   

ii  php5-imap   5.3.2-0.dotdeb.1
   

ii  php5-mcrypt 5.3.2-0.dotdeb.1
   

ii  php5-mysql  5.3.2-0.dotdeb.1
   

ii  php5-suhosin5.3.2-0.dotdeb.1
   

ii  php5-xcache 5.3.2-0.dotdeb.1
   

Test script:
---
header('Cache-Control: no-store, no-cache, must-revalidate');

header('Cache-Control: post-check=0, pre-check=0', false);

header('Pragma: no-cache');

header('Content-Type: image/png');



$image = imagecreate(55,15);

imagecolorallocate($image, 0,0,0);



if($get->getValue('temp2'))


Bug #49869 [Com]: imagettfbbox returns bogus value

2010-03-19 Thread administrateur at exinsidephp dot com
Edit report at http://bugs.php.net/bug.php?id=49869&edit=1

 ID:   49869
 Comment by:   administrateur at exinsidephp dot com
 Reported by:  orel at melix dot net
 Summary:  imagettfbbox returns bogus value
 Status:   No Feedback
 Type: Bug
 Package:  GD related
 Operating System: Linux
 PHP Version:  5.2.11
 Assigned To:  tabe

 New Comment:

See http://bugs.php.net/bug.php?id=51315



Problem isn't resolved.

Tested width the last snapshot (PHP 5.3.2)


Previous Comments:

[2010-01-26 01:00:02] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


[2010-01-18 09:36:42] t...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




[2009-11-04 15:05:50] orel at melix dot net

It is ok with PHP 5.3.2-dev

with this configure line

./configure  --with-gd --enable-gd-native-ttf  --with-freetype-dir



Result is

Array

(

[0] => -1

[1] => 3

[2] => 173

[3] => 3

[4] => 173

[5] => -14

[6] => -1

[7] => -14

)


[2009-10-29 03:30:31] t...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

It looks ok with PHP_5_3:

Array

(

[0] => -1

[1] => 3

[2] => 173

[3] => 3

[4] => 173

[5] => -14

[6] => -1

[7] => -14

)




[2009-10-13 18:56:23] paj...@php.net

Hm that one is new, time to look at it Tabe?




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/bug.php?id=49869


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


Bug #51315 [Opn]: imagettfbbox randomly don't work

2010-03-23 Thread administrateur at exinsidephp dot com
Edit report at http://bugs.php.net/bug.php?id=51315&edit=1

 ID:   51315
 User updated by:  administrateur at exinsidephp dot com
 Reported by:  administrateur at exinsidephp dot com
 Summary:  imagettfbbox randomly don't work
 Status:   Open
 Type: Bug
 Package:  GD related
 Operating System: Debian GNU/Linux 5.0
 PHP Version:  5.3.2

 New Comment:

So I have find the origin of the problem : "GCC".



This problem appear if you compile PHP 5.3.2 width GCC 4.3.2 on Debian
32 bits. For fix the problem you must compile PHP 5.3.2 width GCC 4.1.2.


Previous Comments:

[2010-03-19 16:36:19] administrateur at exinsidephp dot com

rechange title


[2010-03-19 16:35:50] administrateur at exinsidephp dot com

So I have add debug line and i find origin of bug :



View my previous script an modify width this line :



$tab =
imagettfbbox(8,0,Config::getCons('PATH_CACHE').'font/verdana.TTF',
$texte);

$text_x = (55-($tab[2]-$tab[6]))/2;

$text_y = (15-($tab[1]-$tab[5]))/2+9;



file_put_contents(Config::getCons('PATH_CACHE').'log_font.txt', $text.'
x:'.$text_x.' y:'.$text_y.'
imagbox:'.json_encode($tab)."\n",FILE_APPEND);





The result : 



 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:33554459 y:12.5
imagbox:[-1,-1,-33554433,-1,-33554433,-9,33554430,-9]

 x:33554459 y:12.5
imagbox:[-1,-1,-33554433,-1,-33554433,-9,33554430,-9]

 x:33554459 y:12.5
imagbox:[-1,-1,-33554433,-1,-33554433,-9,33554430,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]

 x:33554459 y:12.5
imagbox:[-1,-1,-33554433,-1,-33554433,-9,33554430,-9]

 x:12 y:12.5 imagbox:[-1,-1,30,-1,30,-9,-1,-9]



So the problem is located on imagettfbbox funtion, it give wrong value
for x position.

--------------------
[2010-03-19 16:26:47] administrateur at exinsidephp dot com

Change title of bug

--------------------
[2010-03-17 20:55:28] administrateur at exinsidephp dot com

Description:

Hi,



I have ugraded PHP 5.2 to PHP 5.3.2 on my Debian server and I have found
a bug width ths function imagettfbbox.



Sometimes the text don't show on the image generated :



http://www.exinsidephp.com/cache/example.png



If I refresh the page (Ctrl+F5) another image don't display the text :



http://www.exinsidephp.com/cache/example2.png



Any error on PHP Blog, any error on syslog or kernel log... I haven't
find any trace of error. Someone have the same issue ?



The PHP Package come from http://www.dotdeb.org/ website. The list of
modules installed (dpkg -l | grep php5) :



ii  libapache2-mod-php5 5.3.2-0.dotdeb.1
   

ii  php5 5.3.2-0.dotdeb.1   


ii  php5-cli5.3.2-0.dotdeb.1
   

ii  php5-common 5.3.2-0.dotdeb.1
   

ii  php5-curl   5.3.2-0.dotdeb.1
   

ii  php5-dev5.3.2-0.dotdeb.1
   

ii  php5-gd 5.3.2-0.dotdeb.1
   

ii  php5-geoip  5.3.2-0.dotdeb.1
   

ii  php5-imagick5.3.2-0.dotdeb.1
   

ii  php5-imap   5.3.2-0.dotdeb.1
   

ii  php5-mcrypt 5.3.2-0.dotdeb.1
   

ii  php5-mysql  5.3.2-0.dotdeb.1
   

ii  php5-suhosin5.3.2-0.dotdeb.1
   

ii  php5-xcache 5.3.2-0.dotdeb.1
   

Test script:
---
header('Cache-Control: no-store, no-cache, must-revalidate'

[PHP-BUG] Bug #53769 [NEW]: Order to call __destruct on global way

2011-01-17 Thread administrateur at exinsidephp dot com
From: 
Operating system: All
PHP version:  5.3.5
Package:  Class/Object related
Bug Type: Bug
Bug description:Order to call __destruct on global way

Description:

Hello,



In my opinion, the Garbage collector of PHP have a strange behavoir on
order calling __destruct methods. So the documentation say that GB call
__destruct of an instance of object after all references destroyed.



But this is not true if it have a reference on a static (global) scope. But
for me a reference is one that is in a global scope or not.





I think this is a bug, and if this is not, can you explain to me why GB
have this behavior ?

Test script:
---
http://pastebin.com/pTb1fqQK

Expected result:

Show C Destruct C Show B Destruct B Destruct A

Actual result:
--
Show C Destruct C Destruct A Show B Destruct B 

-- 
Edit bug report at http://bugs.php.net/bug.php?id=53769&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53769&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53769&r=trysnapshot53
Try a snapshot (trunk):  
http://bugs.php.net/fix.php?id=53769&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53769&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53769&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53769&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=53769&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=53769&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=53769&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=53769&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=53769&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=53769&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=53769&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53769&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=53769&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=53769&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=53769&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=53769&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=53769&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=53769&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=53769&r=mysqlcfg