Giter Site home page Giter Site logo

php7-reference's People

Contributors

dghelprat avatar greg0ire avatar guillaumedievart avatar jaybizzle avatar marcioalmada avatar nicoder avatar p16 avatar porimol avatar samvaughton avatar sketchni avatar tpunt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php7-reference's Issues

'string'->toUpper() example in README.md

Unless I am mistaken (which is entirely likely) strings aren't objects in PHP, so one cannot call methods on them, let along calling method on literal strings.

The changes to the parser might allow this to work if strings were objects, but they aren't so it doesn't.

I actually can't think of a literal->method() call which would work in PHP?

(an otherwise great doc btw, which I refer to constantly during my testing)

Clarity for Backward Compatibility and Enhancement Changes

There have been various misunderstanding of the section Changes and how it relates to Backward Compatibility (BC) changes on PHP7 related forums. Could you please, see how you can make a distinction -- maybe via a separate section specifically for possible BC changes. This will be very helpful for reference purpose.

Redefinition of parameters

Hi Thomas,

I think you missed to talk about the redefinition of parameter not possible with the new engine .

Example:

function foo($a, $a) {}
// Fatal error: Redefinition of parameter $a in

For more information about it, you can check this article https://wiki.php.net/phpng in the incompatibilities section.

Thanks for your work !

list() function changes

Hi @tpunt
I was trying out the examples for the list() function and I was getting different results for

$a = [1, 2];
list($a, $b) = $a;

// PHP <7 : $a = 1, $b = 2
// PHP 7: $a = 1, $b = null + "Undefined index 1"

$b = [1, 2];
list($a, $b) = $b;

// PHP <7 : $a = null + "Undefined index 0", $b = 2
// PHP 7: $a = 1, $b = 2

In my case I got

$a = [1, 2];
list($a, $b) = $a;

// PHP <7 : $a = 1, $b = 2
// PHP 7: $a = 1, $b = 2

$b = [1, 2];
list($a, $b) = $b;

// PHP <7: $a = null, $b = 2
// PHP 7: $a = 1, $b = 2

After checking the php versions and trying to understand why I got those different values, I found that in the documentation it's stated Modification of the array during list() execution (e.g. using list($a, $b) = $b) results in undefined behavior.

Given this discrepancies I've open a bug on php.net and they are looking into it. I've also done some modifications and I will open a PR as soon as the matter is cleared :)

PHP7 released!

PHP 7 is set to be released on December 3rd, 2015.

Shouldn't this be modified?

php5 to php7 error

Hİ ı want to ask question with a another project.

my project php5 and I want to upgrade this project to php7. BUT I get a lot of bugs.

Notice: Undefined index: aranan in C:\xampp\htdocs\nesciences\content.php on line 60

Notice: Undefined variable: role_number in C:\xampp\htdocs\nesciences\user\edit_role.php on line 4

Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, bool given in C:\xampp\htdocs\nesciences\user\add_revision_page.php on line 5

Fatal error: Uncaught Error: Call to undefined function yetki_kontrol() in C:\xampp\htdocs\nesciences\user\edit_role.php:3 Stack trace: #0 {main} thrown in C:\xampp\htdocs\nesciences\user\edit_role.php on line 3

here some bugs how can ı fixed this error.

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.