Re: [PHP4BETA] A quick clarification question about PHP4...
| From: | Andi Gutmans | Date: | Tue, 24 Aug 1999 06:21:01 +0000 |
| Subject: | Re: [PHP4BETA] A quick clarification question about PHP4... | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3672@lists.php.net to get a copy of this message | ||
At 09:38 AM 8/23/99 -0500, Jim Brain wrote:
I know that it would probably be just as simple to compile PHP4 and figure this out for myself, but I do not currently have an environment suitable to compile it. However, I am starting a new PHP project, and wanted to try and make my PHP3 code such that it will move to version 4 without any hiccups&. As for configuration: I have been using .php for my extension for some time, so that is not a problem. As for the incompatibilities list: The static var initializer limitation is what I need clarification on. In my mind, scalar vars include only numbers (strings and such are arrays&), but I know PHP is not C, so can someone tell me what things are valid to pass in init code:What would work is: function foo($ar) {
static $foo = array('Sunday','Monday','Tuesday');
}
Number? String? Array of Numbers? Array of Strings?Yep.
If all those can be passed, can someone give me an example of something that cannot be passed?function foo ($ar) {
static $foo = $ar;} This wouldn't work anymore.
In another question, I am not sure I understand the You can t use PHP dynamic extensions in Windows.Not all dynamic extensions have been ported/compiled to PHP 4.0 yet. But the MySQL extension, for example, should be working already. Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/