Coder Social home page Coder Social logo

phd's Issues

Publish a new release on PEAR and github?

https://github.com/php/phd/releases mentions the last release was 1.1.11, from 2019. Various improvements were made on the master branch since then (e.g. fixing various notices uses of deprecated features such as join() argument order).

https://wiki.php.net/doc/phd/install mentions that "The preferred method is using the pear channel", which also causes 1.1.11 to be installed.

I'm not familiar with publishing of pear modules myself, or who would be considered an owner of this application. Going through the steps in https://github.com/php/phd/blob/master/HOWTO.RELEASE first would help (e.g. checking for missing files and putting release notes in package.xml)

Broken links for constants in table rows

Hi,

The links to constants in https://www.php.net/manual/en/class.phar.php are broken (e.g., https://www.php.net/manual/en/.php#phar.constants.sha256 )

While they point to the correct ids it seems the URLs for Ids inside table.row are not being generated correctly.

en/reference/phar/Phar.xml
121:     <varname linkend="phar.constants.sha256">Phar::SHA256</varname>

en/reference/phar/constants.xml
117:     <row xml:id="phar.constants.sha256">

While the code lies in the doc-en repository, I suppose this is a URL generation issue with phd (?)

Speed up or avoid downloading of css from http://www.php.net in render.php

When running phd/render.php --docbook doc-base/.manual.xml --package PHP --partial=book.simdjson --format xhtml - it takes 10 seconds

Using https://github.com/adsr/phpspy to render a flame graph:

phd-flame-graph

  1. Use php's curl module if available?
  2. Use a different CDN for static assets if possible, or check if the file is recent? (This is taking 5 seconds per file, which is a different question for a different repo)
  3. Send etags/if-modified-since? (doesn't help, still slow https://daniel.haxx.se/blog/2019/12/06/curl-speaks-etag/ )
  4. It's a fast 0.01 second redirect to https://www.php.net/styles/theme-base.css
  5. Maybe check the modification time on disk and cache on disk as sha($url) on http 200s, and allow it by default if the css file modification time is less than a day old
Copying http://www.php.net/styles/theme-base.css
Copying http://www.php.net/styles/theme-medium.css
» wc output/php-chunked-xhtml/**/*.css  
 1884  3784 32631 output/php-chunked-xhtml/styles/03e73060321a0a848018724a6c83de7f-theme-base.css
  606  1242 11091 output/php-chunked-xhtml/styles/03e73060321a0a848018724a6c83de7f-theme-medium.css
 2490  5026 43722 total
< HTTP/2 200 
< server: myracloud
< date: Fri, 21 Oct 2022 12:52:18 GMT
< content-type: text/css
< last-modified: Mon, 17 Oct 2022 12:10:02 GMT
< etag: "634d461a-7f77"
< expires: Sat, 22 Oct 2022 11:06:08 GMT
< cache-control: max-age=86400
< x-cdn: 1

This might just be a wifi or cdn or isp issue, though - see php/web-php#556

Foreign return type syntax

I noticed that the documentation still uses Java/C# style return types, even though PHP now has its own syntax for return types. For exmaple:

mixed json_decode ( string $json )

instead of:

json_decode ( string $json ) : mixed

It would be nice to see the documentation reflect the syntax of the language.

Function listing in PHP manual contains spurious entries for some languages

The Function and Method listing contains spurious entries at the end for some languages, e.g. Japanese and simplified Chinese. I think this is (at least partially) caused by not properly handling UTF-8, e.g.

// Nav bar to jump directly to a character
$chars = array_count_values(array_map(function($ref){ return strtolower($ref[0]); }, $refs));

I'm not really sure whether this is the actual issue, though, since only functions and methods are supposed to be listed there, and this should only contain valid ASCII characters, so strlower() and friends shouldn't be a problem.

Submit package to Packagist

The repository contains a valid composer.json file, so the package could be installed via Composer, however attempting to composer require php/phd lists that the package could not be found.

Attempting to submit the package via https://packagist.org/packages/submit gives "The vendor name php is reserved, please use another name or reach out to us if you have a legitimate use for it."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.