Rowan Tommins

Results 12 issues of Rowan Tommins

Per #11, there is now a note about using a better source of randomness if possible, and a "PHP 7" generator which uses the crypto-safe `random_int` function. However, if you...

enhancement

**PHP version** 8.0.19 (also reproduced on 7.4.30) **PHP SQLSRV or PDO_SQLSRV version** pdo_sqlsrv 5.10.1 **Microsoft ODBC Driver version** unixODBC 2.3.7 [ODBC Driver 17 for SQL Server] **SQL Server version** Microsoft...

The idea is to build up a library of tests which describe the behaviour of real file streams under PHP. Regardless of the internal code structure, this can then be...

The EOF flag on native file streams is only set after reading *past* the end of the stream, never on open or seek. Similarly, `fread` will never push the file...

Firstly, thanks to the creators and maintainers of this project, it's a really useful tool. I had a scenario where I wanted to mock a streamed input (in the real...

bug

### Code of Conduct - [X] I have read and agree to the GitHub Docs project's [Code of Conduct](https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md) ### What article on docs.github.com is affected? https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges ### What part(s)...

content
waiting for review
pull requests

Oddly, the XML namespace spec leaves un-prefixed attributes as undefined behaviour, rather than inheriting the default namespace. While fixing this, I've also made most of the output ignore local aliases,...

There is currently no way of distinguishing between _a single element_ (e.g. `$sxml->Result[0]`) and a _list of elements_ (e.g. `$sxml->Result` or `$sxml->children()`) which happens to include only one item. They...

bug

There seems to be a bug (or misfeature?) in SimpleXML where attributes in the default namespace don't show if you call `->attributes($default_namespace_uri)` rather than `->attributes('', true)`. Because of `simplexml_dump`'s attempts...

bug

The [`xpath()`](http://php.net/manual/en/simplexmlelement.xpath.php) method **doesn't** return a `SimpleXMLElement`, but an actual array of objects. `simplexml_dump()` will currently return an error if you try to pass it this array. Keeping this limitation...

enhancement