GithubHelp home page GithubHelp logo

udat / hiphop-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebook/hhvm

1.0 1.0 0.0 19.33 MB

Source code transformer from PHP to C++

License: Other

Haskell 0.03% PHP 7.10% C 31.11% C++ 59.06% Java 0.05% Shell 2.62% Perl 0.01% Python 0.02% Emacs Lisp 0.01%

hiphop-php's People

Contributors

andrewparoski avatar carsonmcdonald avatar danopia avatar davidrecordon avatar haiping avatar jano avatar jasone avatar jeffdunn avatar lcastelli avatar metagoto avatar oyamauchi avatar paroski avatar psaab avatar

Stargazers

 avatar

Watchers

 avatar  avatar

hiphop-php's Issues

SplObjectStorage::valid() - behaviour difference

Test case:

<?php

$a = new SplObjectStorage();
$a->attach(new StdClass());
$a->attach(new StdClass());
for ($i=0; $i<3; ++$i) {
  var_dump($a->valid());
  var_dump($a->key());
  $a->next();
}

$a->rewind();

for ($i=0; $i<=10; ++$i) {
  var_dump($a->valid());
  var_dump($a->key());
  $a->next();
}

PHP:

bool(false)
int(0)
bool(false)
int(1)
bool(false)
int(2)
bool(true)
int(0)
bool(true)
int(1)
bool(false)
int(2)
bool(false)
int(3)
bool(false)
int(4)
bool(false)
int(5)
bool(false)
int(6)
bool(false)
int(7)
bool(false)
int(8)
bool(false)
int(9)
bool(false)
int(10)

PHPi:

HipHop Notice:  In PHP, mixing up foreach() and functional style array iteration by calling current(), each(), key(), value(), prev(), next() may lead to undefined behavior. In HipHop, this problem is less severe, but to avoid inconsistency between PHP and HipHop, please call reset() or end() after foreach and before calling any of those array iteration functions.
bool(true)
int(0)
HipHop Notice:  In PHP, mixing up foreach() and functional style array iteration by calling current(), each(), key(), value(), prev(), next() may lead to undefined behavior. In HipHop, this problem is less severe, but to avoid inconsistency between PHP and HipHop, please call reset() or end() after foreach and before calling any of those array iteration functions.
HipHop Notice:  In PHP, mixing up foreach() and functional style array iteration by calling current(), each(), key(), value(), prev(), next() may lead to undefined behavior. In HipHop, this problem is less severe, but to avoid inconsistency between PHP and HipHop, please call reset() or end() after foreach and before calling any of those array iteration functions.
bool(true)
int(1)
HipHop Notice:  In PHP, mixing up foreach() and functional style array iteration by calling current(), each(), key(), value(), prev(), next() may lead to undefined behavior. In HipHop, this problem is less severe, but to avoid inconsistency between PHP and HipHop, please call reset() or end() after foreach and before calling any of those array iteration functions.
HipHop Notice:  In PHP, mixing up foreach() and functional style array iteration by calling current(), each(), key(), value(), prev(), next() may lead to undefined behavior. In HipHop, this problem is less severe, but to avoid inconsistency between PHP and HipHop, please call reset() or end() after foreach and before calling any of those array iteration functions.
bool(false)
int(2)
HipHop Notice:  In PHP, mixing up foreach() and functional style array iteration by calling current(), each(), key(), value(), prev(), next() may lead to undefined behavior. In HipHop, this problem is less severe, but to avoid inconsistency between PHP and HipHop, please call reset() or end() after foreach and before calling any of those array iteration functions.
bool(true)
int(0)
bool(true)
int(1)
bool(false)
int(2)
bool(false)
int(3)
bool(false)
int(4)
bool(false)
int(5)
bool(false)
int(6)
bool(false)
int(7)
bool(false)
int(8)
bool(false)
int(9)
bool(false)
int(10)

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.