Asp - Php - Cgi - Perl
Only Variables Should Be Passed By Reference Php Sorunu..
Only Variables Should Be Passed By Reference Php Sorunu..
-
PHP Strict Standards: Only variables should be passed by reference in /home/falan filan/functions.php on line 324
Functions php de yer alan 324. satır aşağıdaki kodda 13. satıra denk geliyor. Yardımcı olursanız sevinirim.
function qas_blog_restore_tags($input) { $opened = array(); // loop through opened and closed tags in order if(preg_match_all("/<(\/?[a-z]+)>?/i", $input, $matches)) { foreach($matches[1] as $tag) { if(preg_match("/^[a-z]+$/i", $tag, $regs)) { // a tag has been opened if(strtolower($regs[0]) != 'br') $opened[] = $regs[0]; } elseif(preg_match("/^\/([a-z]+)$/i", $tag, $regs)) { // a tag has been closed unset($opened[array_pop(array_keys($opened, $regs[1]))]); } } }
-
o fonksiyona soktuklarını bi variable a koy, variable i gönder fonksion icine diyor anladığım kadarıyla
-
Burda bişiler buldum ama kodlar bana ait olmadığı için yani tam bilmediğim için neyi neryee sokacağımı bilemiyorum. Kurcuklayayım az daha..
-
2. Ise yine o 13. Satırdaki regs [1] i regs 0 yapıp denemen.
-
Sebnem bunu yazdı
2. Ise yine o 13. Satırdaki regs [1] i regs 0 yapıp denemen.
En başta onu denemiştim yemiyor ne yazık ki..
-
şunu :
unset(
$opened
[
array_pop
(
array_keys
(
$opened
,
$regs
[1]))]);
böyle bi dene :
$a =
array_keys
(
$opened
,
$regs
[1]);
$b = array_pop($a);
unset($opened[$b]);
-
ozgunlu bunu yazdı
şunu :
unset(
$opened
[
array_pop
(
array_keys
(
$opened
,
$regs
[1]))]);
böyle bi dene :
$a =
array_keys
(
$opened
,
$regs
[1]);
$b = array_pop($a);
unset($opened[$b]);
Sanırım oldu hocam. Sanırım diyorum çünkü kesin sonucu yarına alırım, bu döngünün baya bir tekrarlanması lazım. Şu anda görünürde bir eror log oluşmadı en azından. Eline sağlık
-
rica ederim hocam, kolay gelsin
edit:
Detaylı bilgi:
http://stackoverflow.com/questions/2967597/only-variables-can-be-passed-by-reference
ozgunlu tarafından 26/Oca/15 00:46 tarihinde düzenlenmiştir -
ozgunlu bunu yazdı
rica ederim hocam, kolay gelsin
edit:
Detaylı bilgi:
http://stackoverflow.com/questions/2967597/only-variables-can-be-passed-by-reference
Teşekkürler hocam hala ortada görünen bir eror log yok :)
Birde pm attım.