ID: 50474
Updated by: [email protected]
Reported By: php dot net at karlsruler dot de
-Status: Open
+Status: Bogus
Bug Type: SPL related
Operating System: Windows 7
PHP Version: 5.3SVN-2009-12-14 (snap)
New Comment:
It's not same.. See:
000000002bb405e[e]00000000344e0650
000000002bb405e[c]00000000344e0650
000000002bb405e[9]00000000344e0650
Previous Comments:
------------------------------------------------------------------------
[2009-12-14 23:37:32] php dot net at karlsruler dot de
Description:
------------
spl_object_hash returns the same hash sum for different objects. First
I have to say, I'm using PHP 5.3.2dev, compiled with VC9:
System Windows NT CHRISTIAN-PC 6.1 build 7100 ((null)) i586
Build Date Dec 6 2009 20:47:34
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
Configure Command cscript /nologo configure.js
"--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack"
"--disable-isapi"
"--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared"
"--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared"
"--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared"
"--with-enchant=shared"
Server API Apache 2.0 Handler
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,TS,VC9
PHP Extension Build API20090626,TS,VC9
Debug Build no
Thread Safety enabled
this allows me using Imagick-Extension on Windows Systems.
I hope I'm not reporting stupid things (f.e. SPL not working on Windows
7 or VC9 or ..), but I would assume, that this should always return
different values.
Reproduce code:
---------------
<?php
require "./init.php";
$header = new Text("Das ist mein erstes Layout.");
$header->getPadding()->set(5);
$footer = new Text(".. und das wars auch schon wieder.\nBis zum
nächsten Mal!");
$footer->getPadding()->set(5);
$layout = new Layout_Vertical();
$layout->add($header);
$layout->add($footer);
echo spl_object_hash($header), "<br />";
echo spl_object_hash($footer), "<br />";
echo spl_object_hash($layout), "<br />";
// exit;
$renderer = new Renderer_Imagick($layout);
echo $renderer->display();
?>
Expected result:
----------------
different hash sums
Actual result:
--------------
000000002bb405ee00000000344e0650
000000002bb405ec00000000344e0650
000000002bb405e900000000344e0650
(refreshing page)
0000000001202cce0000000040e8d071
0000000001202ccc0000000040e8d071
0000000001202cc90000000040e8d071
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50474&edit=1