|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-09 00:10 UTC] jani@php.net
[2007-11-16 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 13:00:01 2025 UTC |
Description: ------------ str_replace makes correkt changes. everay time i make an echo with the var it is coorect, But sometimes if i use the result value as a params to another function the value is null. Reproduce code: --------------- $neu= "ALTER TABLE `cms_content_props` ADD INDEX ( `prop_name` ) "; $sql=str_replace('`cms_',"`".$config['db_prefix'],$neu); echo $sql; // it shows always the correct value $db->Execute($sql); // but in function $sql has a value uf NULL. // this occurs after 10 ..14 times working with the same sequence but different values of $neu if i use this $neu= "ALTER TABLE `cms_content_props` ADD INDEX ( `prop_name` ) "; $db->Execute(str_replace('`cms_',"`".$config['db_prefix'],$neu)); no error