FAQ

# PHP>php-internals>May 2010

## 47 discussions - 416 posts

• 177

#### Type hinting

All, As I mentioned numerous times scalar type hinting is a very controversial feature in my mind and requires some substantial discussion before we move ahead to implement it. As such, I think we ...
 Zeev SuraskiMay 22, 2010 at 3:04 pmJun 18, 2010 at 4:18 pm
• 65

#### [PATCH] New PDO methods for PostgreSQL driver

Hi. I developed some patches for PDO/Postgresql driver in order to add some useful methods that were available in the original pgsql driver. The attached patches apply on 5.3.2 and svn 5.3.x. If ...
 Denis GasparinMay 24, 2010 at 8:57 amMay 10, 2011 at 7:32 pm
• 19

#### Constant and expression ?

Hello ! Is there any feature request about constant and expression ? I would like to write something like that : <?php namespace foo\bar\directories { const tmp = __DIR__ . '/tmp'; } ? Best regards, ...
 Frederic HardyMay 19, 2010 at 8:54 amJun 9, 2010 at 9:36 am
• 17

#### Re: [PHP-CVS] svn: /php/php-src/trunk/ NEWS ext/json/json.c ext/json/php_json.h ext/json/tests/serialize.phpt

And I would go with JsonSerializable. However, where does it come from? Does it have to be an interface or why not using __toJson? I must have lived under a rock as I don't see any proposal either, ...
 Pierre JoyeMay 6, 2010 at 11:37 amMay 15, 2010 at 2:47 pm
• 10

#### ChangeLog

Hey, I know type hints are more fun to discuss but anyways: In trunk ChangeLog lists entries up till 2005 (when 5.2 was branched of, from which 5.3 was branched from which the current trunk was ...
 Johannes SchlüterMay 28, 2010 at 1:22 pmMay 31, 2010 at 11:32 am
• 10

#### Fixes for parse_url, bug 50563

Hey all, Attached is a patch to remove the warning from parse_url() in situations where parse_url() cannot actually parse the url. The bug report also claims there should be a new feature for ...
 Ralph SchindlerMay 21, 2010 at 3:38 pmMay 24, 2010 at 7:12 pm
• 10

#### openssl_(en|de)crypt missing IV

I was just looking through the implementation of openssl_encrypt() (and openssl_decrypt()) today because I need to make some encrypted payloads, but the prototype didn't have anywhere to place an ...
 Sara GolemonMay 18, 2010 at 1:53 amMay 18, 2010 at 9:44 pm
• 10

#### Closure local return

Hi, The statement 'return' in a closure is now returning from the scope that evaluate the closure (evaluation scope). It could have been in an other way. It could mean return from the scope were the ...
 Mathieu.suenMay 3, 2010 at 1:01 pmMay 17, 2010 at 9:48 am
• 10

#### Autoboxing in PHP

Hey, Just to let you know about a new RFC for adding autoboxing feature in PHP. Look at http://wiki.php.net/rfc/autoboxing . Regards, Moriyoshi
 Moriyoshi KoizumiMay 4, 2010 at 3:54 amMay 6, 2010 at 8:12 am
• 9

#### Run Time Cache RFC

Hi, I'm proposing another optimisation technique implementation for PHP which makes up to 20% speed up on synthetic tests and up to 8% speed up on real-life applications. The technique is similar to ...
 Dmitry StogovMay 18, 2010 at 7:22 amMay 25, 2010 at 6:19 am
• 7

#### Compilation of trunk with --enable-dtrace

Hello ! I'm currently trying to compile the trunk with dtrace under FreeBSD 8 with revision 298979 and i have the following problem : # ./buildconf # ./configure --enable-dtrace #make ... ...
 Frederic HardyMay 6, 2010 at 9:38 amJun 23, 2010 at 9:13 pm
• 7

#### TODO List

What is the correct todo list ? I want to help us but a need to see the todo list to select my work! Any sugestion to start? -- Att. Mathias Grimm http://mathiasgrimm.com.br http://phpempregos.com.br
 Mathias GrimmMay 12, 2010 at 8:23 pmMay 13, 2010 at 6:03 pm
• 6

#### scalar type hinting?

The documentation team is about to document a few trunk features, but we're unsure about scalar type hinting. I see no final proposal (only three old RFC's) nor recent discussion here. Is the recent ...
 Philip OlsonMay 22, 2010 at 2:51 pmMay 23, 2010 at 8:28 am
• 6

#### Interface and abstract method

Hi, In the SPL there is some interface that have abstract method: *Countable* { /* Methods */ abstract public int count <http://www.php.net/manual/en/countable.count.php ( void ) } While some ...
 Mathieu.suenMay 18, 2010 at 3:12 pmMay 19, 2010 at 12:59 pm
• 6

#### $_SESSION numeric index bug im using php 5.1.6 on xampp and i find a bug. how to know if the bug was fixed? the bug is: 1. <?php session_start();$_SESSION[0] = 'test'; echo $_SESSION[0]; 2. <?php session_start(); ...  Mathias GrimmMay 13, 2010 at 3:25 pmMay 13, 2010 at 7:09 pm • 5 #### svn account request ssufficool I would like to contribute to the PDO abstraction layer.  Stanley SufficoolMay 14, 2010 at 2:34 amMay 19, 2010 at 9:49 pm • 5 #### [SUGGEST] - passthru i suggest the passthru functionality to pass parameter to other method without typing all parameters,like call_user_func_array. foo(passthru()); = call_user_func_array('foo', func_get_args()); // ...  Mathias GrimmMay 18, 2010 at 10:40 pmMay 19, 2010 at 11:57 am • 4 #### Jsonable interface If php have annotations feature its be very simple. class MyClass implements Jsonable { private$name; private $age; Transient private$dtCreated;// or JsonIgnore or JsonTransient } all properties ...
 Mathias GrimmMay 18, 2010 at 9:04 pmMay 19, 2010 at 12:44 am
• 4

#### PHP 5 X PHP 6

Is the http://wiki.php.net/rfc for both php5 and php6? there are differents developer teams for dev 5 and 6 ? When something new comes to php 5, php 6 must implement it to? -- Mathias Grimm Sun ...
 Mathias GrimmMay 18, 2010 at 3:33 pmMay 18, 2010 at 7:14 pm
• 4

#### What is the use of the $replacement property in the RegexIterator class. Hi. I'm in the process of getting the PHPDoc classes showing the correct inherited properties and methods (public/protected but not private). I picked RecursiveRegexIterator (it has the largest ...  Richard QuadlingMay 5, 2010 at 4:26 pmMay 11, 2010 at 12:40 pm • 3 #### NEW-OUTPUT-API patch - update Hello devs, I've updated the patch that backports the Mike's work, which was previously created and applied by Jani on branches/PHP_5_3 (and reverted...) based on the old trunk, to be applied against ...  Felipe PenaMay 28, 2010 at 1:06 amMay 31, 2010 at 7:56 am • 3 #### json_decode() and integers larger than LONG_MAX (2^31 - 1) I know this issue has been seen before, but I hope to do something about it.$json = '1234567890123456789'; $x = json_decode($json); /* $x is now a float *aproximately* * equal to the original value ...  Sara GolemonMay 20, 2010 at 7:50 pmMay 20, 2010 at 9:22 pm • 3 #### SPKAC support for openssl in PHP Hi All, Wondering if there is any support for SPKAC [1] in the openssl extension for PHP? If not is it planned, and if not can it be? KEYGEN/SPKAC support is growing in the UA vendors and KEYGEN is ...  Nathan RixhamMay 18, 2010 at 9:06 amMay 19, 2010 at 12:22 am • 3 #### Sugest I want to suggest the GO include format <?php require ( 'utila.php', 'utilb.php', 'utilc.php', ) the same from include or more , without comma <?php require ( 'utila.php' 'utilb.php' 'utilc.php' ) or ...  Mathias GrimmMay 13, 2010 at 11:38 pmMay 14, 2010 at 3:22 pm • 3 #### Upload progress in sessions Hi, upload progress in session is implemented in old trunk. Is there a change to apply the patch also to the new trunk? http://wiki.php.net/rfc/session_upload_progress Jaroslav Hanslik  Jaroslav HanslikMay 4, 2010 at 10:47 amMay 10, 2010 at 12:22 pm • 2 #### SVN Account Request: fitzagard The existing SVN account holder "kristina" suggested that I get an account specifically to help maintain /phpdoc/en/trunk/reference/mongo/  Fitz AgardMay 27, 2010 at 7:13 pmMay 28, 2010 at 12:49 am • 2 #### keeping ref var_hash within recursive serialize() calls Hi, I prepared a patch [1] which enables serialize() to keep track of object/variable references through its var_hash throughout recursive calls to serialize(). See the test included in the patch ...  Michael WallnerMay 21, 2010 at 8:46 amMay 25, 2010 at 12:14 pm • 2 #### Æ Hello ! I have a problem with php 5.3.2 under FreeBSD 7/8 with configure option --enable-zend-multibyte and phar support. Then i use this option, phar does not work correctly. No seg fault, no crash, ...  Frederic HardyMay 20, 2010 at 9:28 amMay 21, 2010 at 5:59 pm • 2 #### Re: [PHP-CVS] svn: /php/php-src/trunk/Zend/tests/traits/ error_001.phpt error_002.phpt error_003.phpt error_004.phpt error_005.phpt error_006.phpt error_007.phpt error_008.phpt error_009.phpt Hi Felipe: Hope you don't mind that I post it on the list, think the discussion should be properly archived. Hm, well, don't know, but I do not really see a reason to disallow magic methods. There ...  Stefan MarrMay 6, 2010 at 8:16 pmMay 7, 2010 at 2:16 pm • 2 #### SVN Account Request: robertchu Manage this group instead of Patrick Reilly. http://news.php.net/group.php?group=php.evangelism  Robert ChuMay 6, 2010 at 8:44 pmMay 6, 2010 at 9:01 pm • 2 #### PDO-SQLite version In PHP 5.2, phpinfo() reports the PDO-SQLite version as "3.3.7". However, from the SVN history of the 5.2 branch, SQLite 3.3.15 and even part of 3.3.16 were merged in. The VERSION file was updated to ...  Ken DreyerMay 6, 2010 at 6:00 pmMay 6, 2010 at 8:13 pm • 2 #### Using default_charset for htmlspecialchars() and others I am not sure if this has been discussed or not. I will gladly make an RFC if not. I think it would be very intuitive if htmlspecialchars used the ini value default_charset as its default. And any ...  Brian MoonMay 2, 2010 at 10:53 pmMay 4, 2010 at 4:07 am • 1 #### nginx + php-fcgi : 0day exploit ? Hi guys, On the nginx mailing list, there is an interesting conversation about the usage of php through fastcgi with nginx which can cause a security hole: http://forum.nginx.org/read.php?2,88845 I ...  Jérôme LoyetMay 21, 2010 at 7:58 pmJul 30, 2010 at 8:08 am • 1 #### ext/intl builds on Mac Hi! The patch below seems to fix ext/intl (and maybe others) compile problems on Mac OS X. The problem seems to be because C++ needs libstdc++ and for some reason it doesn't get added on Mac. Could ...  Stas MalyshevMay 24, 2010 at 7:43 pmMay 25, 2010 at 1:04 am • 1 #### Using call_user_function with closures I am taking over an extension from one of my coworkers, and it was written before the time of PHP 5.3. Are there any special considerations to think about when using closures with call_user_function? ...  AlecMay 19, 2010 at 10:00 pmMay 19, 2010 at 11:25 pm • 1 #### Re: [PHP-CVS] svn: /php/php-src/branches/PHP_5_3/ NEWS http://news.php.net/php.doc.cvs/6187 Regards, Mike  Michael WallnerMay 18, 2010 at 8:24 amMay 18, 2010 at 8:59 am • 1 #### Suggest 2010/5/14 Johannes Schlüter <johannes@schlueters.de make php more productive is always good. there are others cases where error is imprecise 1. if($a==$b){ 2. 3. if($c==\$d){...} the error will be ...
 Mathias GrimmMay 14, 2010 at 2:14 pmMay 14, 2010 at 2:32 pm
• 1

#### Release manager ?

Hello ! I would like to know if the name of the two release manager are now known ? Best regards, Fred
 Frederic HardyMay 10, 2010 at 9:52 amMay 10, 2010 at 11:06 am
• 1

#### Re: svn: /php/php-src/trunk/ UPGRADING Zend/zend_builtin_functions.c

I do not see a need for Trait-specific reflection because of the flattening property ("compiler-assisted copy&paste").
 Sebastian BergmannMay 7, 2010 at 8:35 amMay 7, 2010 at 12:12 pm
• 0

#### Type hinting / auto-conversion suggestion.

Hi. This is one of those "out there" ideas. Not sure about the feasibility of it. So ... Currently, there are not a massive number of functions that can detail what has been supplied to a function. ...
 Richard QuadlingMay 30, 2010 at 6:37 pmMay 30, 2010 at 6:37 pm
• 0

#### PHP / iODBC / PostGreSQL: running into a deadlock

Hi, I recently decided to setup my mac for some php developments. OS X 10.5 already ships with Apache, PHP and I chose PostGreSQL as DB server. I picked a package link from the official website and I ...
 PrometheusMay 25, 2010 at 6:16 pmMay 25, 2010 at 6:16 pm
• 0

#### Bug #51866 - lenient date parsing

Hi! The bug 51866 was reclassified as docs bug, but I still think it makes a lot of sense to allow for lenient date parsing. And it's quite easy to do IMHO - the parser can easily stop at the end of ...
 Stas MalyshevMay 23, 2010 at 8:52 amMay 23, 2010 at 8:52 am
• 0

#### Re: [PHP-CVS] svn: /php/php-src/trunk/ NEWS Zend/tests/array_type_hint_001.phpt Zend/tests/hint/param_type_hint_001.phpt Zend/tests/hint/param_type_hint_002.phpt Zend/tests/hint/param_type_hint_003.phpt Zend/tests/hint/param_type_hint_004.phpt Zend/t

could you discuss that on internals please? -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
 Pierre JoyeMay 22, 2010 at 3:22 pmMay 22, 2010 at 3:22 pm
• 0

#### Follow-up on collecting your box office scores

Dear Concert Industry Professional: We are writing to ensure Billboard and CelebrityAccess are publishing your Box Office Scores! If you are not currently reporting scores to us, than they are not ...
 CelebrityAccessMay 11, 2010 at 8:27 pmMay 11, 2010 at 8:27 pm
• 0

#### SVN Account Request: freevivek

I work on langauge theory.and trying now to develop a new runtime system for xml with php xml handler
 Vivek srivastavaMay 10, 2010 at 7:10 pmMay 10, 2010 at 7:10 pm
• 0

#### PHP upgrade from 5.2.3 to 5.3.2

Hello php experts, We are doing php upgrade from 5.2.3 to 5.3.2 (unix on Octeon/MIPS) and getting a compilation error * Issue with Octeon platform o Round() API throws "Maximum execution time ...
 Bharat NagwaniMay 7, 2010 at 5:53 amMay 7, 2010 at 5:53 am
• 0

#### Re: [PHP-CVS] svn: /php/php-src/trunk/win32/build/ config.w32

There are *some* of us :P
 Mark SkilbeckMay 5, 2010 at 11:34 amMay 5, 2010 at 11:34 am