ID: 45122 Updated by: [EMAIL PROTECTED] Reported By: flebron at bumeran dot com -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Fedora Linux PHP Version: 5.2.6 New Comment:
There is no memcache extension in PHP. You should report bugs in PECL extensions at: http://pecl.php.net/bugs/report.php?package=memcache Previous Comments: ------------------------------------------------------------------------ [2008-05-28 21:39:07] flebron at bumeran dot com Description: ------------ Memcache somehow obtains a reference where none exists. In the example, I set $clave to a string, set $keyword to a copy of $clave (since $clave is a string, I'm assuming it internally is copied by value, not reference, as per the docs?), and then do something with $clave. At the end of this mucking, $keyword is changed, replacing a space with an underscore. The problem does NOT occur if I say $keyword = substr($clave, 0); instead of $keyword = $clave, so I'm assuming it's somehow obtaining a reference? (The script starts and ends at the <?php and ?> sections, there's nowhere that says global $keyword or anything). The memcached server version is 1.2.1, running on Apache 2.0.53. Reproduce code: --------------- <?php $a = memcache_pconnect("192.168.1.252", 11211); $clave = "abc 123"; $keyword = $clave; echo "K: ".$keyword."<br/>"; $a->get($clave); echo "K: ".$keyword."<br/>"; ?> Expected result: ---------------- K: abc 123 K: abc 123 Actual result: -------------- K: abc 123 K: abc_123 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45122&edit=1
