Gráfico de Commits

20 Commits

Autor SHA1 Mensagem Data
Paul Tarjan 0335e335b7 build setAccessible
This implementation feels a bit haphazard with all the forces in the `o_*`. Is this stuff all changing dario?
2013-07-18 17:28:42 -07:00
Joel Marcey ffab2c17f8 Implement SplObjectStorage::getInfo()
Implement SplObjectStorage::getInfo(). PHPUnit requires this method.
2013-07-15 15:46:32 -07:00
Kyle Delong 772c0cef17 Fix native Exception::setPreviousChain() fatal
Fixes a fatal in native Exception, which is missing parentheses on this method call.
2013-07-09 13:45:39 -07:00
Sean Cannella 22c5361a24 redis fixes from github comments
- applying github comment fixes (thanks @staabm )
2013-06-27 13:00:37 -07:00
mwilliams 2c1919505f Allow hhas files to set the MayUseVV flag
If the last parameter is '...', set the MayUseVV flag
2013-06-27 12:59:28 -07:00
mwilliams 0632fb3a11 Allow .hhas to specify default values
It only matters for reflection, but hhas parameters with
default values need to specify the text of the string.

In addition, change reflection to report parameters with no
default value string as not having a default value, to avoid
crashing when trying to access it.

Update the "func" parameter of array_filter to have a valid
default. The other uses of defaults in array_map and array_filter
are just to get the proper behavior on too few/too many args,
and don't really correspond to default values.
2013-06-27 10:50:22 -07:00
Sara Golemon 2811e9da94 Implement Redis extension
PHP implementation of Redis
2013-06-25 13:19:10 -07:00
Eric Caruso 4a86eb9f1f Implement EmptyIterator, InfiniteIterator, NoRewindIterator
This makes 14 zend tests happy. It also requires some
real stupidity, but PHP iterators are weird.
2013-06-25 13:19:09 -07:00
Eric Caruso 533ed5d493 Implement LimitIterator
Implements LimitIterator from SPL.

Closes #788
2013-06-25 13:19:03 -07:00
Paul Tarjan 63fc74a751 reflection for namespaced constants
In repo mode this does the right thing and returns the right constant, but for non-repo it thinks it is an undefined non-namespace constant. I'll have to do something more hardcore if that starts to matter

While I was in there, I made the correct name for `ReflectionParameter` that was added in 5.4 instead of the draft we copied.
2013-06-25 12:22:52 -07:00
Paul Tarjan b9058d036e add SessionHandler
In PHP 5.4 they added this class that encased the callback functions. The difficulty came with needing to fallback to the previously registered session handler.

Closes #792
2013-06-25 11:42:33 -07:00
Paul Tarjan 23c8e35811 make sysdoc.php not write WarningThis
Also, while I was in there I made the script not spew anything on the terminal.

@markw65 `array_filter` doesn't match the signature from php.net. Should it?
2013-06-25 11:42:32 -07:00
Paul Tarjan 3cbf137805 small fixes to SplFixedArray
`is_numeric` is a superset of `is_int` and 2 of these tests don't pass until we get Zend calling convention over stdlib.
2013-06-21 16:37:12 -07:00
Joel Marcey 530efd6760 Add default values to parameters of SplFileObject::flock(),fwrite()
Trying to get CakePHP running on HHVM revealed warnings around SplFileObject flock() and fwrite(). E.g., HipHop Warning: flock() expects exactly 2 parameters, 1 given. Added default values for those particular parameters
2013-06-21 11:44:40 -07:00
Paul Tarjan 9fbfca6510 fix typo in SplFixedArray 2013-06-21 11:26:04 -07:00
parent5446 61ec6703fc Added missing PHP SPL classes
Added PHP implementations for PHP SPL classes that are currently missing from HHVM. These include:

- SplDoublyLinkedList
- SplQueue and SplStack
- SplFixedArray
- SplHeap, SplMinHeap, and SplMaxHeap
- SplPriorityQueue
- SplTempFileObject

Closes #807
2013-06-21 11:21:43 -07:00
Paul Tarjan fe323e4821 add filter extension 2013-06-19 09:56:50 -07:00
Paul Tarjan 28bbefa14d actually implement SplObjectStorage 2013-06-19 09:56:39 -07:00
Paul Tarjan 77cf51fb32 add session_register_shutdown
added in 5.4. The comments on http://php.net/manual/en/function.session-register-shutdown.php said this was equivilent.
2013-06-18 16:23:27 -07:00
Drew Paroski e6b6aa0b09 Clean up the hphp/system folder
I noticed that directorty structure of hphp/system was a bit scattered, so
I consolidated things to reduce the total number of folders and to put
related things together with each other.

This diff moves the contents of "hphp/system/classes_hhvm" into
"hphp/system", it moves the contents of "hphp/system/lib" into
"hphp/system", moves "hphp/idl" to "hphp/system/idl", and moves the
contents of "hphp/system/globals" into "hphp/system/idl".
2013-06-15 23:29:49 -07:00