|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-12-15 01:17 UTC] felipe@php.net
[2009-12-15 09:23 UTC] php dot net at karlsruler dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 07:00:01 2025 UTC |
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