#21907 [Opn->Fbk]: Fatal error: Call to undefined function: get_attribute_node()
ID: 21907 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: DOM XML related Operating System: Solaris 5.7 PHP Version: 4.2.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip The compile error should really be fixed now. If it still persists, let us know what compiler/version you're using. Previous Comments: [2003-01-29 07:22:33] [EMAIL PROTECTED] I try with the snapshot php4-STABLE-200301282030, and when i execute make, appear this error: In file included from /opt/php/php4-STABLE-200301282030/main/php_scandir.c:20: /opt/php/php4-STABLE-200301282030/main/php_scandir.h:15: warning: `struct dirent' declared inside pa rameter list /opt/php/php4-STABLE-200301282030/main/php_scandir.h:15: warning: its scope is only this definition or declaration, which is probably not what you want. /opt/php/php4-STABLE-200301282030/main/php_scandir.h:19: warning: `struct dirent' declared inside pa rameter list /opt/php/php4-STABLE-200301282030/main/php_scandir.c:46: conflicting types for `alphasort' /opt/php/php4-STABLE-200301282030/main/php_scandir.h:15: previous declaration of `alphasort' /opt/php/php4-STABLE-200301282030/main/php_scandir.c:53: conflicting types for `scandir' /opt/php/php4-STABLE-200301282030/main/php_scandir.h:19: previous declaration of `scandir' /opt/php/php4-STABLE-200301282030/main/php_scandir.c: In function `scandir': /opt/php/php4-STABLE-200301282030/main/php_scandir.c:106: warning: passing arg 4 of `qsort' from inc ompatible pointer type make: *** [main/php_scandir.lo] Error 1 [2003-01-28 12:14:57] [EMAIL PROTECTED] Please try newer snapshot, this compiler error should be fixed now. [2003-01-28 12:01:24] [EMAIL PROTECTED] U send me an email with u feedback: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz I try to install this version of PHP, with the next configuration: ./configure --with-apache=./../../Apache/apache_1.3.27 \ --with-dom\ --with-oci8=/Persa/Oracle \ --with-gd \ --with-freetype-dir \ --enable-gd-native-ttf \ --enable-gd-imgstrttf \ --with-png-dir \ --with-zlib \ --enable-track-vars And when i ejecute make... i retrive this error: In file included from /opt/php/php4-STABLE-200301281230/main/php_scandir.c:20: /opt/php/php4-STABLE-200301281230/main/php_scandir.h:15: warning: `struct dirent' declared inside parameter list /opt/php/php4-STABLE-200301281230/main/php_scandir.h:15: warning: its scope is only this definitionor declaration, which is probably not what you want. /opt/php/php4-STABLE-200301281230/main/php_scandir.h:19: warning: `struct dirent' declared inside parameter list /opt/php/php4-STABLE-200301281230/main/php_scandir.c:44: conflicting types for `alphasort' /opt/php/php4-STABLE-200301281230/main/php_scandir.h:15: previous declaration of `alphasort' /opt/php/php4-STABLE-200301281230/main/php_scandir.c:51: conflicting types for `scandir' /opt/php/php4-STABLE-200301281230/main/php_scandir.h:19: previous declaration of `scandir' /opt/php/php4-STABLE-200301281230/main/php_scandir.c: In function `scandir': /opt/php/php4-STABLE-200301281230/main/php_scandir.c:104: warning: passing arg 4 of `qsort' from incompatible pointer type make: *** [main/php_scandir.lo] Error 1 What can i do to resolve my problem ??? Thanks, Damian.- [2003-01-27 17:05:37] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2003-01-27 12:17:29] [EMAIL PROTECTED] Hi, my name is Damian. I'm programming in php and i'm using DOMXML in SOLARIS 5.7 (Apache 1.3.27). I have the next problem: I build a XML document with a function, and then i try to parse this document with DOM XML, but sometimes i have a problem. In the web appear this error: Fatal error: Call to undefined function: get_attribute_node() This error is random, sometimes is work ok, and somtimes i have this error. Have u got any information about that ??? This is my code: Pagina nueva 1 get_elements_by_tagname ($variable_metodo_get); $atributo_desplegado_elemento_metodo_get=$elemento_metodo_get[0]->get_attribute_node("DESPLEGADO"); if($atributo_desplegado_elemento_met
#21907 [Opn->Fbk]: Fatal error: Call to undefined function: get_attribute_node()
ID: 21907 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: DOM XML related Operating System: Solaris 5.7 PHP Version: 4.2.3 New Comment: Please try newer snapshot, this compiler error should be fixed now. Previous Comments: [2003-01-28 12:01:24] [EMAIL PROTECTED] U send me an email with u feedback: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz I try to install this version of PHP, with the next configuration: ./configure --with-apache=./../../Apache/apache_1.3.27 \ --with-dom\ --with-oci8=/Persa/Oracle \ --with-gd \ --with-freetype-dir \ --enable-gd-native-ttf \ --enable-gd-imgstrttf \ --with-png-dir \ --with-zlib \ --enable-track-vars And when i ejecute make... i retrive this error: In file included from /opt/php/php4-STABLE-200301281230/main/php_scandir.c:20: /opt/php/php4-STABLE-200301281230/main/php_scandir.h:15: warning: `struct dirent' declared inside parameter list /opt/php/php4-STABLE-200301281230/main/php_scandir.h:15: warning: its scope is only this definitionor declaration, which is probably not what you want. /opt/php/php4-STABLE-200301281230/main/php_scandir.h:19: warning: `struct dirent' declared inside parameter list /opt/php/php4-STABLE-200301281230/main/php_scandir.c:44: conflicting types for `alphasort' /opt/php/php4-STABLE-200301281230/main/php_scandir.h:15: previous declaration of `alphasort' /opt/php/php4-STABLE-200301281230/main/php_scandir.c:51: conflicting types for `scandir' /opt/php/php4-STABLE-200301281230/main/php_scandir.h:19: previous declaration of `scandir' /opt/php/php4-STABLE-200301281230/main/php_scandir.c: In function `scandir': /opt/php/php4-STABLE-200301281230/main/php_scandir.c:104: warning: passing arg 4 of `qsort' from incompatible pointer type make: *** [main/php_scandir.lo] Error 1 What can i do to resolve my problem ??? Thanks, Damian.- [2003-01-27 17:05:37] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2003-01-27 12:17:29] [EMAIL PROTECTED] Hi, my name is Damian. I'm programming in php and i'm using DOMXML in SOLARIS 5.7 (Apache 1.3.27). I have the next problem: I build a XML document with a function, and then i try to parse this document with DOM XML, but sometimes i have a problem. In the web appear this error: Fatal error: Call to undefined function: get_attribute_node() This error is random, sometimes is work ok, and somtimes i have this error. Have u got any information about that ??? This is my code: Pagina nueva 1 get_elements_by_tagname ($variable_metodo_get); $atributo_desplegado_elemento_metodo_get=$elemento_metodo_get[0]->get_attribute_node("DESPLEGADO"); if($atributo_desplegado_elemento_metodo_get->value() == "FALSE"){ $elemento_metodo_get[0]->set_attribute("DESPLEGADO", "TRUE"); } else{ $elemento_metodo_get[0]->set_attribute("DESPLEGADO", "FALSE"); } $documento_domxml=$doc->dump_mem(true); } /* Obtengo el elemento root */ $root=$doc->document_element(); /* Obtengo los hijos de root */ $child_root=$root->child_nodes(); imprime_menu($root,count($child_root),$PHP_SELF,$start,$delta,$nivel); /* Imprimo el menu */ /* Funcion recursiva */ function imprime_menu($elemento_padre,$cant_hijos,$pagina_actual,$layer_start,$layer_delta,$nivel_func) { /* Obtengo los hijos del padre */ $hijos=$elemento_padre->child_nodes(); // echo "Tiene ".$cant_hijos." hijos"; for( $i = 0 ; $i < $cant_hijos ; $i++){ // echo "i=".$i.""; $atributo_desplegado=$hijos[$i]->get_attribute_node("DESPLEGADO"); $atributo_nombre_menu=$hijos[$i]->get_attribute_node("NOMBRE_MENU"); $atributo_tipo=$hijos[$i]->get_attribute_node("TIPO"); if( $atributo_tipo->value() == "LINK") $atributo_path=$hijos[$i]->get_attribute_node("PATH");
#21907 [Opn->Fbk]: Fatal error: Call to undefined function: get_attribute_node()
ID: 21907 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback -Bug Type: *XML functions +Bug Type: DOM XML related Operating System: Solaris 5.7 PHP Version: 4.2.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: [2003-01-27 12:17:29] [EMAIL PROTECTED] Hi, my name is Damian. I'm programming in php and i'm using DOMXML in SOLARIS 5.7 (Apache 1.3.27). I have the next problem: I build a XML document with a function, and then i try to parse this document with DOM XML, but sometimes i have a problem. In the web appear this error: Fatal error: Call to undefined function: get_attribute_node() This error is random, sometimes is work ok, and somtimes i have this error. Have u got any information about that ??? This is my code: Pagina nueva 1 get_elements_by_tagname ($variable_metodo_get); $atributo_desplegado_elemento_metodo_get=$elemento_metodo_get[0]->get_attribute_node("DESPLEGADO"); if($atributo_desplegado_elemento_metodo_get->value() == "FALSE"){ $elemento_metodo_get[0]->set_attribute("DESPLEGADO", "TRUE"); } else{ $elemento_metodo_get[0]->set_attribute("DESPLEGADO", "FALSE"); } $documento_domxml=$doc->dump_mem(true); } /* Obtengo el elemento root */ $root=$doc->document_element(); /* Obtengo los hijos de root */ $child_root=$root->child_nodes(); imprime_menu($root,count($child_root),$PHP_SELF,$start,$delta,$nivel); /* Imprimo el menu */ /* Funcion recursiva */ function imprime_menu($elemento_padre,$cant_hijos,$pagina_actual,$layer_start,$layer_delta,$nivel_func) { /* Obtengo los hijos del padre */ $hijos=$elemento_padre->child_nodes(); // echo "Tiene ".$cant_hijos." hijos"; for( $i = 0 ; $i < $cant_hijos ; $i++){ // echo "i=".$i.""; $atributo_desplegado=$hijos[$i]->get_attribute_node("DESPLEGADO"); $atributo_nombre_menu=$hijos[$i]->get_attribute_node("NOMBRE_MENU"); $atributo_tipo=$hijos[$i]->get_attribute_node("TIPO"); if( $atributo_tipo->value() == "LINK") $atributo_path=$hijos[$i]->get_attribute_node("PATH"); // echo "Menu : ".$atributo_nombre_menu->value()." (TIPO -> ".$atributo_tipo->value().") Valor: ".$atributo_desplegado->value().""; ?> px; height:px; z-index:1; left: value() == "MENU") echo 6 * $nivel_func + 6; else echo 6 * ($nivel_func + 1) + 6; ?>px; top: px">" target="value() == "MENU") echo "_self"; else echo "principal"; ?>"> value() == "MENU" && $atributo_desplegado->value() == "TRUE") echo " - "; if($atributo_tipo->value() == "MENU" && $atributo_desplegado->value() == "FALSE") echo " + "; echo $atributo_nombre_menu->value(); ?> value() == "TRUE"){ $layer_start=imprime_menu($hijos[$i],count($hijos[$i]->child_nodes()),$pagina_actual,$layer_start,$layer_delta,$nivel_func+1); /* Imprimo los hijos */ } } return $layer_start; } ?> -- Edit this bug report at http://bugs.php.net/?id=21907&edit=1