diff --git a/language/predefined/attributes/nodiscard.xml b/language/predefined/attributes/nodiscard.xml index ca85def70..736c38ddb 100644 --- a/language/predefined/attributes/nodiscard.xml +++ b/language/predefined/attributes/nodiscard.xml @@ -1,4 +1,4 @@ - + O atributo NoDiscard NoDiscard @@ -38,6 +38,7 @@ + #[\Attribute] final NoDiscard diff --git a/language/predefined/exception.xml b/language/predefined/exception.xml index 959e68dfc..3762a594f 100644 --- a/language/predefined/exception.xml +++ b/language/predefined/exception.xml @@ -1,5 +1,5 @@ - + Exception Exception diff --git a/reference/bc/bcmath.number.xml b/reference/bc/bcmath.number.xml index ea6337dcf..ac9fa4a58 100644 --- a/reference/bc/bcmath.number.xml +++ b/reference/bc/bcmath.number.xml @@ -1,5 +1,5 @@ - + A classe BcMath\Number diff --git a/reference/dom/dom/dom-attr.xml b/reference/dom/dom/dom-attr.xml index 96337af5e..de46b7fd1 100644 --- a/reference/dom/dom/dom-attr.xml +++ b/reference/dom/dom/dom-attr.xml @@ -1,5 +1,5 @@ - + A Classe <classname>Dom\Attr</classname> Dom\Attr diff --git a/reference/dom/dom/dom-cdatasection.xml b/reference/dom/dom/dom-cdatasection.xml index 7728e5ae9..99da26112 100644 --- a/reference/dom/dom/dom-cdatasection.xml +++ b/reference/dom/dom/dom-cdatasection.xml @@ -1,5 +1,5 @@ - + A Classe Dom\CDATASection diff --git a/reference/dom/dom/dom-characterdata.xml b/reference/dom/dom/dom-characterdata.xml index e8a27f7c8..e087c460c 100644 --- a/reference/dom/dom/dom-characterdata.xml +++ b/reference/dom/dom/dom-characterdata.xml @@ -1,5 +1,5 @@ - + A Classe Dom\CharacterData Dom\CharacterData diff --git a/reference/dom/dom/dom-childnode.xml b/reference/dom/dom/dom-childnode.xml index b92e6885e..cfbddb1f0 100644 --- a/reference/dom/dom/dom-childnode.xml +++ b/reference/dom/dom/dom-childnode.xml @@ -1,4 +1,4 @@ - + A Interface Dom\ChildNode Dom\ChildNode diff --git a/reference/dom/dom/dom-comment.xml b/reference/dom/dom/dom-comment.xml index 592e80ddf..501101807 100644 --- a/reference/dom/dom/dom-comment.xml +++ b/reference/dom/dom/dom-comment.xml @@ -1,5 +1,5 @@ - + A Classe Dom\Comment Dom\Comment diff --git a/reference/dom/dom/dom-document.xml b/reference/dom/dom/dom-document.xml index bc29c653d..0b13fc7a3 100644 --- a/reference/dom/dom/dom-document.xml +++ b/reference/dom/dom/dom-document.xml @@ -1,5 +1,5 @@ - + A Classe Dom\Document Dom\Document diff --git a/reference/dom/dom/dom-documentfragment.xml b/reference/dom/dom/dom-documentfragment.xml index 3043a8b18..ef03e68bc 100644 --- a/reference/dom/dom/dom-documentfragment.xml +++ b/reference/dom/dom/dom-documentfragment.xml @@ -1,5 +1,5 @@ - + A Classe Dom\DocumentFragment Dom\DocumentFragment diff --git a/reference/dom/dom/dom-documenttype.xml b/reference/dom/dom/dom-documenttype.xml index dac6478a9..c304779e0 100644 --- a/reference/dom/dom/dom-documenttype.xml +++ b/reference/dom/dom/dom-documenttype.xml @@ -1,5 +1,5 @@ - + A Classe Dom\DocumentType Dom\DocumentType diff --git a/reference/dom/dom/dom-dtdnamednodemap.xml b/reference/dom/dom/dom-dtdnamednodemap.xml index 37b34ed1a..1d794048a 100644 --- a/reference/dom/dom/dom-dtdnamednodemap.xml +++ b/reference/dom/dom/dom-dtdnamednodemap.xml @@ -1,5 +1,5 @@ - + A Classe Dom\DtdNamedNodeMap Dom\DtdNamedNodeMap diff --git a/reference/dom/dom/dom-element.xml b/reference/dom/dom/dom-element.xml index b6859eec6..c30a7954c 100644 --- a/reference/dom/dom/dom-element.xml +++ b/reference/dom/dom/dom-element.xml @@ -1,5 +1,5 @@ - + A Classe Dom\Element Dom\Element diff --git a/reference/dom/dom/dom-entity.xml b/reference/dom/dom/dom-entity.xml index 8f03d46ff..455bd8224 100644 --- a/reference/dom/dom/dom-entity.xml +++ b/reference/dom/dom/dom-entity.xml @@ -1,5 +1,5 @@ - + A Classe Dom\Entity Dom\Entity diff --git a/reference/dom/dom/dom-entityreference.xml b/reference/dom/dom/dom-entityreference.xml index 83e2d8943..2d027b55a 100644 --- a/reference/dom/dom/dom-entityreference.xml +++ b/reference/dom/dom/dom-entityreference.xml @@ -1,5 +1,5 @@ - + A Classe Dom\EntityReference Dom\EntityReference diff --git a/reference/dom/dom/dom-htmlcollection.xml b/reference/dom/dom/dom-htmlcollection.xml index 5e0c3e860..7e3c65359 100644 --- a/reference/dom/dom/dom-htmlcollection.xml +++ b/reference/dom/dom/dom-htmlcollection.xml @@ -1,5 +1,5 @@ - + A Classe Dom\HTMLCollection Dom\HTMLCollection diff --git a/reference/dom/dom/dom-htmldocument.xml b/reference/dom/dom/dom-htmldocument.xml index d9c81ab9a..a5e293d01 100644 --- a/reference/dom/dom/dom-htmldocument.xml +++ b/reference/dom/dom/dom-htmldocument.xml @@ -1,5 +1,5 @@ - + A Classe Dom\HTMLDocument Dom\HTMLDocument diff --git a/reference/dom/dom/dom-htmlelement.xml b/reference/dom/dom/dom-htmlelement.xml index bad245778..8e7a12d87 100644 --- a/reference/dom/dom/dom-htmlelement.xml +++ b/reference/dom/dom/dom-htmlelement.xml @@ -1,5 +1,5 @@ - + A Classe Dom\HTMLElement Dom\HTMLElement diff --git a/reference/dom/dom/dom-implementation.xml b/reference/dom/dom/dom-implementation.xml index a12e21b3c..80b61cd0b 100644 --- a/reference/dom/dom/dom-implementation.xml +++ b/reference/dom/dom/dom-implementation.xml @@ -1,5 +1,5 @@ - + A Classe Dom\Implementation Dom\Implementation diff --git a/reference/dom/dom/dom-namednodemap.xml b/reference/dom/dom/dom-namednodemap.xml index 721db6f25..9d9498df9 100644 --- a/reference/dom/dom/dom-namednodemap.xml +++ b/reference/dom/dom/dom-namednodemap.xml @@ -1,5 +1,5 @@ - + A Classe Dom\NamedNodeMap Dom\NamedNodeMap diff --git a/reference/dom/dom/dom-namespaceinfo.xml b/reference/dom/dom/dom-namespaceinfo.xml index 6c6538d52..40a169cbe 100644 --- a/reference/dom/dom/dom-namespaceinfo.xml +++ b/reference/dom/dom/dom-namespaceinfo.xml @@ -1,5 +1,5 @@ - + A Classe Dom\NamespaceInfo Dom\NamespaceInfo diff --git a/reference/dom/dom/dom-node.xml b/reference/dom/dom/dom-node.xml index 2b3e54151..7b86fdfb4 100644 --- a/reference/dom/dom/dom-node.xml +++ b/reference/dom/dom/dom-node.xml @@ -1,5 +1,5 @@ - + A Classe Dom\Node Dom\Node diff --git a/reference/dom/dom/dom-nodelist.xml b/reference/dom/dom/dom-nodelist.xml index f20e44b4f..4a9a8f3f1 100644 --- a/reference/dom/dom/dom-nodelist.xml +++ b/reference/dom/dom/dom-nodelist.xml @@ -1,5 +1,5 @@ - + A Classe <classname>Dom\NodeList</classname> Dom\NodeList diff --git a/reference/dom/dom/dom-notation.xml b/reference/dom/dom/dom-notation.xml index df25a06a1..9be2244b6 100644 --- a/reference/dom/dom/dom-notation.xml +++ b/reference/dom/dom/dom-notation.xml @@ -1,5 +1,5 @@ - + A Classe Dom\Notation Dom\Notation diff --git a/reference/dom/dom/dom-parentnode.xml b/reference/dom/dom/dom-parentnode.xml index aaa6f08b6..1d7f4c912 100644 --- a/reference/dom/dom/dom-parentnode.xml +++ b/reference/dom/dom/dom-parentnode.xml @@ -1,4 +1,4 @@ - + A Interface Dom\ParentNode Dom\ParentNode diff --git a/reference/dom/dom/dom-processinginstruction.xml b/reference/dom/dom/dom-processinginstruction.xml index 644d71bc2..b0f29341b 100644 --- a/reference/dom/dom/dom-processinginstruction.xml +++ b/reference/dom/dom/dom-processinginstruction.xml @@ -1,5 +1,5 @@ - + A Classe Dom\ProcessingInstruction Dom\ProcessingInstruction diff --git a/reference/dom/dom/dom-text.xml b/reference/dom/dom/dom-text.xml index 6f6f51a8d..9e21a762b 100644 --- a/reference/dom/dom/dom-text.xml +++ b/reference/dom/dom/dom-text.xml @@ -1,5 +1,5 @@ - + A Classe Dom\Text Dom\Text diff --git a/reference/dom/dom/dom-tokenlist.xml b/reference/dom/dom/dom-tokenlist.xml index 1f54808a1..5169f9094 100644 --- a/reference/dom/dom/dom-tokenlist.xml +++ b/reference/dom/dom/dom-tokenlist.xml @@ -1,5 +1,5 @@ - + A Classe Dom\TokenList Dom\TokenList diff --git a/reference/dom/dom/dom-xmldocument.xml b/reference/dom/dom/dom-xmldocument.xml index b14652873..58b46d44d 100644 --- a/reference/dom/dom/dom-xmldocument.xml +++ b/reference/dom/dom/dom-xmldocument.xml @@ -1,5 +1,5 @@ - + A Classe Dom\XMLDocument Dom\XMLDocument diff --git a/reference/dom/dom/dom-xpath.xml b/reference/dom/dom/dom-xpath.xml index e534b34e4..60e4f7974 100644 --- a/reference/dom/dom/dom-xpath.xml +++ b/reference/dom/dom/dom-xpath.xml @@ -1,5 +1,5 @@ - + A Classe Dom\XPath Dom\XPath diff --git a/reference/ffi/ffi.ctype.xml b/reference/ffi/ffi.ctype.xml index 8c769e280..1dae5a943 100644 --- a/reference/ffi/ffi.ctype.xml +++ b/reference/ffi/ffi.ctype.xml @@ -1,5 +1,5 @@ - + Identificadores de Tipo em C diff --git a/reference/ffi/ffi.exception.xml b/reference/ffi/ffi.exception.xml index 47243ade5..21017406d 100644 --- a/reference/ffi/ffi.exception.xml +++ b/reference/ffi/ffi.exception.xml @@ -1,5 +1,5 @@ - + Exceções FFI diff --git a/reference/ffi/ffi.parserexception.xml b/reference/ffi/ffi.parserexception.xml index fc41afaaf..c611cfd95 100644 --- a/reference/ffi/ffi.parserexception.xml +++ b/reference/ffi/ffi.parserexception.xml @@ -1,5 +1,5 @@ - + Exceções do Analisador FFI diff --git a/reference/pdo_dblib/pdo-dblib.xml b/reference/pdo_dblib/pdo-dblib.xml index b4c1a1763..646d4b067 100644 --- a/reference/pdo_dblib/pdo-dblib.xml +++ b/reference/pdo_dblib/pdo-dblib.xml @@ -1,4 +1,4 @@ - + A classe Pdo\Dblib Pdo\Dblib diff --git a/reference/pdo_firebird/pdo-firebird.xml b/reference/pdo_firebird/pdo-firebird.xml index 84784dc9c..4159c67d6 100644 --- a/reference/pdo_firebird/pdo-firebird.xml +++ b/reference/pdo_firebird/pdo-firebird.xml @@ -1,4 +1,4 @@ - + A classe Pdo\Firebird Pdo\Firebird diff --git a/reference/pdo_mysql/pdo-mysql.xml b/reference/pdo_mysql/pdo-mysql.xml index 9475cdda3..4c2988baf 100644 --- a/reference/pdo_mysql/pdo-mysql.xml +++ b/reference/pdo_mysql/pdo-mysql.xml @@ -1,4 +1,4 @@ - + A classe Pdo\Mysql Pdo\Mysql diff --git a/reference/pdo_odbc/pdo-odbc.xml b/reference/pdo_odbc/pdo-odbc.xml index ef0edecef..2931bbc88 100644 --- a/reference/pdo_odbc/pdo-odbc.xml +++ b/reference/pdo_odbc/pdo-odbc.xml @@ -1,4 +1,4 @@ - + A classe Pdo\Odbc Pdo\Odbc diff --git a/reference/pdo_pgsql/pdo-pgsql.xml b/reference/pdo_pgsql/pdo-pgsql.xml index b27eedbc7..c2c6d590a 100644 --- a/reference/pdo_pgsql/pdo-pgsql.xml +++ b/reference/pdo_pgsql/pdo-pgsql.xml @@ -1,4 +1,4 @@ - + A classe Pdo\Pgsql Pdo\Pgsql diff --git a/reference/pdo_sqlite/pdo-sqlite.xml b/reference/pdo_sqlite/pdo-sqlite.xml index 5a8108e7b..ce068d8e4 100644 --- a/reference/pdo_sqlite/pdo-sqlite.xml +++ b/reference/pdo_sqlite/pdo-sqlite.xml @@ -1,4 +1,4 @@ - + A classe Pdo\Sqlite Pdo\Sqlite diff --git a/reference/simplexml/simplexmlelement/addChild.xml b/reference/simplexml/simplexmlelement/addChild.xml index 1c1c21da5..9e7c194b4 100644 --- a/reference/simplexml/simplexmlelement/addChild.xml +++ b/reference/simplexml/simplexmlelement/addChild.xml @@ -1,5 +1,5 @@ - + SimpleXMLElement::addChild @@ -38,6 +38,10 @@ Se especificado, o valor do elemento filho. + + Os caracteres especiais < e > são escapados + automaticamente, & precisa ser escapado manualmente. + diff --git a/reference/ssh2/functions/ssh2-auth-pubkey-file.xml b/reference/ssh2/functions/ssh2-auth-pubkey-file.xml index 50a0c9527..5338a65da 100644 --- a/reference/ssh2/functions/ssh2-auth-pubkey-file.xml +++ b/reference/ssh2/functions/ssh2-auth-pubkey-file.xml @@ -1,9 +1,9 @@ - + ssh2_auth_pubkey_file - Autentica usando uma chave pública + Autentica usando uma chave pública lida de um arquivo @@ -37,6 +37,7 @@ username + Nome do usuário para autenticação no servidor remoto. @@ -114,6 +115,13 @@ if (ssh2_auth_pubkey_file($connection, 'username', + + &reftitle.seealso; + + ssh2_auth_pubkey + + + + + + ssh2_auth_pubkey + Autentica usando uma chave pública em uma variável + + + + &reftitle.description; + + boolssh2_auth_pubkey + resourcesession + stringusername + stringpubkey + stringprivkey + stringpassphrase + + + Autentica usando uma chave pública em uma variável. + + + + + &reftitle.parameters; + + + session + + + Um identificador de conexão SSH, obtido de uma chamada a + ssh2_connect. + + + + + username + + + Nome do usuário para autenticação no servidor remoto. + + + + + pubkey + + + Chave pública no formato do OpenSSH. Deve ser algo como: + ssh-rsa AAAAB3NzaC1yc2EAAA....NX6sqSnHA8= rsa-key-20121110 + + + + + privkey + + + Chave público OpenSSH. Deve começar com: + -----BEGIN RSA PRIVATE KEY----- + + + + + passphrase + + + Se privkey for criptografada (e deveria + ser), o parâmetro passphrase precisa ser fornecido. + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.examples; + + Autenticação usando uma chave pública + +'ssh-rsa')); +$publicKey = file_get_contents('/home/username/.ssh/id_rsa.pub'); +$privateKey = file_get_contents('/home/username/.ssh/id_rsa'); + +if (ssh2_auth_pubkey($connection, 'username', + $publicKey, + $privateKey, 'secret')) { + echo "Sucesso na autenticação com chave pública\n"; +} else { + die('Falha na autenticação com chave pública'); +} +?> +]]> + + + + + + &reftitle.notes; + + + A biblioteca libssh subjacente não suporta autenticações parciais de forma muito clara. + Ou seja, se for necessário fornecer uma chave pública e uma senha, + parecerá que esta função falhou. Neste caso específico, uma falha + desta chamada pode significar apenas que a autenticação ainda não foi concluída. + É preciso ignorar esta falha, continuar e chamar + ssh2_auth_password para concluir + a autenticação. + + + + + + &reftitle.seealso; + + ssh2_auth_pubkey_file + + + + + diff --git a/reference/ssh2/functions/ssh2-connect.xml b/reference/ssh2/functions/ssh2-connect.xml index 282fc7e69..f33a25e83 100644 --- a/reference/ssh2/functions/ssh2-connect.xml +++ b/reference/ssh2/functions/ssh2-connect.xml @@ -1,5 +1,5 @@ - + ssh2_connect @@ -288,6 +288,7 @@ if (!$connection) die('Falha na conexão'); ssh2_fingerprint ssh2_auth_none ssh2_auth_password + ssh2_auth_pubkey ssh2_auth_pubkey_file ssh2_disconnect