Sorry if this was already suggested before: for people stuck on legacy
applications and without money to upgrade (e.g. charities, user
groups) a PECL extension would at least provide a way to survive.
Forcing people to upgrade doesn't sound like an improvement but more
of a way to push people away
n do. Simplicity is the inverse of the number of
characters
> it takes to achieve the result. So more power with fewer characters
equals
> "elegance"
http://www.artima.com/weblogs/viewpost.jsp?thread=299081
Devis
On 21 October 2012 12:55, Alexey Zakhlestin wrote:
>
> On 2
Hi,
before raising a bug I was wondering if anyone noticed this odd behavior in
BC math functions ?
Actual
php -r "echo bcmul('1.1', '9.0', 5);" ==> 9.90
php -r "bcscale(5); echo bcmul('1.1', '9.0');" ==> 9.90
php -r "bcscale(5); echo bcadd('8.9', '1.0');" ==> 9.9
Expected
php -r "echo bc
valid argument supplied for foreach() in
phpruntests/src/testrun/rtPhpTestRun.php on line 107
PHP Notice: Undefined offset: 1 in
phpruntests/src/testrun/rtPhpTestRun.php on line 107
Devis
Hi,
I had a possible use case while working with an application registry. Any
model could "get a copy" of it to read application settings or retrieve a
resource. However if a model by mistake changed a property, it would
modify the original object without going through proper setters... A quick
Hi Laruence,
the solution you suggest would work though it makes it all a bit more
verbose...
I noticed also that the original variable is completely removed from the
function scope, which is probably a bug.
I'll raise a ticket, thank you ;-)
Devis
On 6 May 2012 05:04, Laruence wrote:
Hi,
I stumbled upon this code while working with a variable passed by
reference, I was wondering if someone could provide some feedback before
raising a ticket, just in case PHP (5.3.6) is doing what it's supposed to
do.
In the code below I would expect "catch" to change the variable as
an assignm
*single* argument (which is what you are seeing).
4. Some even don't support shebang lines *at all*.
Thankfully, 1. and 4. seem to have died out, but 3. is pretty widespread,
so you simply cannot rely on being able to pass more than one argument.
Devis
2012/1/26 Ferenc Kovacs
>
complete. The first hit would use the non optimised code, an optimiser
would run to produce optimised opcode and eventually update APC cache.
Starting with the second hit (or later if the optimisation takes time) the
request would hit the faster cached opcode.
Devis
On 4 December 2011 19:55, Tom
You surely could add a factory to every class in your project, perhaps with
a trait, but you wouldn't have it for core and third party classes.
On 30 November 2011 19:59, Will Fitch wrote:
> Again, back to my question of why not use:
>
> MyComponent::factory($bar, $option);
>
> Depending on wha
Hi,
personally I would find the proposed syntax very useful, similarly to the
following one that is already implemented:
if ($value = foo()) return $value
instead of
$value = foo();
if ($value) return $value;
Regards,
Devis
On 30 November 2011 19:13, Nikita Popov wrote:
> To me the m
Hi Rasmus,
I already tested a similar example (see http://codepad.viper-7.com/tNkTTX)
but I'm getting
> *Parse error*: syntax error, unexpected '->' (T_OBJECT_OPERATOR)
so my question... I thought this feature was part of 5.4 considering the
previous messages, perhaps it i
Hi,
is the new dereferencing syntax definitely part of 5.4 ?
Will it be possible to replace this:
$model = new DomainModel('foo', 'bar');
$result = $model->findByName('John');
with:
$result = (new DomainModel('foo', 'bar'))->findByName(&
ess to strings. I think
>> raising notice is feasible. Isn't it?
>
> String index access is still required since they are often numeric
> strings. We could add a notice for non-numeric strings, but the check
> would slow things down a bit.
>
> -Rasmus
>
Would it be possib
Thanks Ferenc
Everything looks ok http://codepad.viper-7.com/JTXsGK
Devis
On 24 November 2011 10:31, Ferenc Kovacs wrote:
>>
>>
>>> It gives me false in 5.3.6. Using it outside of isset() results in the
>>> fatal error.
>>>
>>
>> hm.
&g
$widget_options['dashboard_incoming_links'] )
|| !isset( $widget_options['dashboard_incoming_links']['home'] )
|| $widget_options['dashboard_incoming_links']['home'] != get_option('home') )
###
Is that correct saying that if the fi
Hi,
I have always disliked the lack of modern packages on Debian/Ubuntu distros,
I feel like minor are misused as major versions, with an exaggerated fear to
upgrade. It's like building web sites for IE6 because people are not allowed
to upgrade to IE9, very frustrating for developers and hard to
flexibility one of its strong points, and since we don't
have method overloading, limiting the signature extension or contraction
doesn't sound very useful to developers.
bye!
Devis
On 19 September 2011 16:53, Ferenc Kovacs wrote:
> First of all, Anthony, thanks for joining into
The example with __construct() is valid (at least in 5.3).
Devis
On 17 September 2011 14:43, Nikita Popov wrote:
> Hi Richard!
>
> Which change are you talking about? I just tried doing:
>class A { public function __construct($a) { } }
>class B extends A
I found these
The error handling output was found to not properly escape HTML output in
> certain cases. An attacker could use this flaw to perform cross-site
> scripting attacks against sites where both display_errors and html_errors
> are enabled.
>
http://www.nessus.org/plugins/index.php?view=
20 matches
Mail list logo