Explorar o código

Update PHP documentation (7.1.3)

Closes #598.
Thibaut Courouble %!s(int64=8) %!d(string=hai) anos
pai
achega
30f389930c

+ 2 - 2
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -446,9 +446,9 @@ credits = [
     'https://raw.githubusercontent.com/phoenixframework/phoenix/master/LICENSE.md'
   ], [
     'PHP',
-    '1997-2016 The PHP Documentation Group',
+    '1997-2017 The PHP Documentation Group',
     'CC BY',
-    'https://creativecommons.org/licenses/by/3.0/'
+    'https://secure.php.net/manual/en/copyright.php'
   ], [
     'PHPUnit',
     '2005-2016 Sebastian Bergmann',

+ 1 - 1
lib/docs/filters/php/clean_html.rb

@@ -43,7 +43,7 @@ module Docs
           node.name = 'h1'
         end
 
-        css('div.partintro', 'div.section').each do |node|
+        css('div.partintro', 'div.section', 'h1 a').each do |node|
           node.before(node.children).remove
         end
 

+ 3 - 1
lib/docs/filters/php/entries.rb

@@ -10,8 +10,9 @@ module Docs
         'Ds'              => 'Data Structures',
         'ErrorException'  => 'Predefined Exceptions',
         'Exception'       => 'Predefined Exceptions',
-        'Json'            => 'JSON',
         'Http'            => 'HTTP',
+        'Json'            => 'JSON',
+        'Lua'             => 'Lua',
         'Mutex'           => 'pthreads',
         'php_user_filter' => 'Stream',
         'Pool'            => 'pthreads',
@@ -26,6 +27,7 @@ module Docs
         'streamWrapper'   => 'Stream',
         'Thread'          => 'pthreads',
         'tidy'            => 'Tidy',
+        'V8'              => 'V8Js',
         'Weak'            => 'Weakref',
         'Worker'          => 'pthreads',
         'XsltProcessor'   => 'XSLT',

+ 5 - 5
lib/docs/scrapers/php.rb

@@ -4,7 +4,7 @@ module Docs
 
     self.name = 'PHP'
     self.type = 'php'
-    self.release = 'up to 7.1.0'
+    self.release = 'up to 7.1.3'
     self.base_url = 'https://secure.php.net/manual/en/'
     self.root_path = 'index.html'
     self.initial_paths = %w(
@@ -46,12 +46,12 @@ module Docs
     BOOKS = %w(apache apc apcu array bc bzip2 calendar csprng classobj ctype curl
       datetime dba dir dom ds eio errorfunc ev event exec exif fileinfo filesystem filter
       ftp funchand gearman geoip gettext gmagick gmp hash iconv iisfunc image
-      imagick imap info inotify intl json ldap libevent libxml mail mailparse
+      imagick imap info inotify intl json judy ldap libevent libxml lua mail mailparse
       math mbstring mcrypt memcached misc mysqli network oauth openssl
       outcontrol password pcntl pcre pdo pgsql phar posix proctitle pthreads quickhash regex runkit
       reflection sca session sem session-pgsql shmop simplexml soap sockets solr sphinx spl
-      spl-types sqlite3 sqlsrv ssh2 stats stream strings sync taint tidy uodbc url
-      var varnish weakref xml xmlreader xmlrpc xmlwriter xsl yaf yar yaml zip zlib)
+      spl-types sqlite3 sqlsrv ssh2 stats stream strings sync taint tidy tokenizer uodbc url
+      v8js var varnish weakref xml xmlreader xmlrpc xmlwriter xsl yaf yar yaml zip zlib)
 
     options[:only] = BOOKS.map { |s| "book.#{s}.html" }
 
@@ -64,7 +64,7 @@ module Docs
     options[:skip_patterns] = [/mysqlnd/]
 
     options[:attribution] = <<-HTML
-      &copy; 1997&ndash;2016 The PHP Documentation Group<br>
+      &copy; 1997&ndash;2017 The PHP Documentation Group<br>
       Licensed under the Creative Commons Attribution License v3.0 or later.
     HTML
   end