Coder Social home page Coder Social logo

php-rfcs's Introduction

PHP RFC drafts and ideas

This is a repo where I keep ideas and RFC drafts for changes to PHP.

Discussions are not accepted on this repo and must be held on the PHP internals list. The only PRs that will be accepted are typo and wording improvements, or when I have explicitly requested suggestions.

Note: if an RFC is published it will follow the license of the PHP Wiki.

Script to convert markdown to custom DokuWiki syntax

Use the md-to-dokuwiki.php script to generate DokuWiki text that mostly works without edits from a markdown file.

Future possible RFC ideas

RFCs Actively being worked on

  • Container/offset semantics overhaul

Priority ideas

These are in no particular order, but they are RFCs that I want to work on sooner than later

  • Comparison semantics overhaul
  • PDOException, fix code property being a string
  • Deprecate implicit conversions from resource to string
  • Remove assumption about multiplication * being commutative
  • Remove usage of SPL extensions in other internal extensions
  • Warn when int to float loses precision + introduce SAFE_INTEGER constant like JS
  • Change eval() to a function that can be disabled
  • Make void an alias for null
  • Object serialization overhaul
  • Warn when attempting to destructure scalars

Remainder of ideas

  • Meta RFC transform empty into a function
  • Remove old DBA handlers
  • Deprecate bool to string implicit coercions
  • Deprecate InfiniteIterator
  • Deprecate implicit conversions to bool in function type juggling context
  • Deprecate control-flow structures in finally blocks
  • Stop requiring parameter names in PHP interface methods
  • Function types

Suggested RFC ideas by other people

These are RFCs ideas that have been suggested during discussion offline or on the list

  • Split exit() and die() into distinct functions where die() only take strings and exit() only takes integers.

Accepted RFC

  • Change exit() to function

php-rfcs's People

Contributors

girgias avatar count-compare-and-skip avatar theodorejb avatar vdelau avatar

Stargazers

Erick de Azevedo Lima avatar Thanh Trần avatar Ayesh Karunaratne avatar  avatar

Watchers

Tim Düsterhus avatar Juliette avatar  avatar  avatar Máté Kocsis avatar Niels Dossche avatar  avatar Anton Kruglov avatar

Forkers

vdelau

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.