Hi,
> > I personally see the benefits this could have but also the BC break this
> > would
> > introduce.
[...]
> I don't see the point of this: the Scalar Type Hints RFC already has a voting
> option on reserving the type names, and it is set to pass, so by the time your
> RFC could go to a vote,
Hello everyone,
I've been following the "Static type hints" discussion for a while now. Aside
from its content, which there are some strong sentiments about, there's also
another recurring pattern - the wish for voting options instead of just
"yes/no".
Along these lines I've created an RFC on one
Hi everyone,
> Timm Friebe hat am 16. August 2014 um 18:09 geschrieben:
> two weeks ago, the RFC `Catchable "Call to a member function bar() on a
> non-object"` was accepted by a vote. I don't have commit access to
> php-src/Zend,
> so I can't commit this myse
Hi,
> Sara Golemon hat am 16. August 2014 um 19:39 geschrieben:
> > On Aug 16, 2014, at 9:09, Timm Friebe wrote:
> > two weeks ago, the RFC `Catchable "Call to a member function bar() on a
> > non-object"` was accepted by a vote. I don't have commit access
Hi,
> I've disabled the following extensions from the build of PHP_HEAD at the
> gcov.php.net server:
[...]
> - sybase_ct
You're right, this is unmaintained.
Timm
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
two weeks ago, the RFC `Catchable "Call to a member function bar() on a
non-object"` was accepted by a vote. I don't have commit access to php-src/Zend,
so I can't commit this myself. Back from my summer vacation, I thought I'd whip
up this email (after bringing the pull request up-to-date an
Hello,
> Yasuo Ohgaki hat am 27. Juli 2014 um 10:11 geschrieben:
>
> Hi Timm,
>
> On Sun, Jun 29, 2014 at 7:40 PM, Timm Friebe <mailto:p...@thekid.de> > wrote:
> > > a couple of weeks ago, I proposed a change to the handling of the
>situation
&g
Hi,
> Peter Cowburn hat am 20. Juli 2014 um 17:42
> geschrieben:
[...]
> > Anyhow, I'd now like to see where we'd come out at and would kindly ask
> >you to
> > vote for or against inclusion of this feature:
> >
> > https://wiki.php.net/rfc/catchable-call-to-member-of-non-object#vote
>
Hi,
> (Hint: __wakeup() isn't called).
>
This looks to be the same as https://bugs.php.net/bug.php?id=60879. Can
you
try the build I linked to in that report and see if it resolves this issue
for you?
It does. Thanks!
- Timm
--
PHP Internals - PHP Runtime Development Mailing List
To u
Hello,
> We like to announce the 7th Release Candidate of PHP 5.4.0.
> We fixed some critical bugs in the PHP 5.4.0 codebase.
> Therefore we had to release another RC.
I still have the following problem I'm experiencing with all release candidates
since RC6:
$ /cygdrive/f/Programme/php-5.4.0RC
Hi,
> As many of you know we made huge improvements in PHP 5.4 memory usage
> (enabling higher concurrency) and runtime performance.
Here are the unit test results for https://github.com/xp-framework/xp-framework
and https://github.com/xp-framework/xp-language after applying workarounds for
tw
Hi,
Can you add this comment to the bug as well please? And assign to
Dmitry, if it is related to the engine then it must be fixed in the
engine :)
Done. I think COM is at fault, but let's see:)
- Timm
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.
Hey,
who can review this patch? I'm not sure this is the right place to fix this
issue - it's related to the literal caching in the Zend Engine's method call
init opcodes (ZEND_INIT_[STATIC_]METHOD_CALL) and might need to be addressed
there instead of having to change PHP extensions.
--cut--
Hi,
in every programming language, method calls are expensive. Especially in
PHP, which does not spend any effort during compile time to resolve method
calls their target (and cannot due to the possibility of lazily loading
classes using include w/ variables). I recently did some performance
Hi,
here's a quick fix for the "bug40236" test failing when run from inside a
directory including spaces (e.g. "C:\Documents and Settings\" or /home/Timm
Friebe/):
Index: Zend/tests/bug40236.phpt
Hi,
is there any reason php://input is not supported in CLI sapi? It would be
nice to test raw post data reading in unittests without having to run them
inside a web server sapi and it's only a five-line patch making php://input
read from stdin in cli (attached).
- Timm
Index: sapi/cli/php_
Hi,
recent change in namespace code introduced new bug, please consider:
triggers "Fatal error: Default value for parameters with a class type hint
can only be NULL"
where the same w/o namespace definition works as expected (no error).
http://sitten-polizei.de/php/zend-constants-lookup.di
Hi,
easy one: Two of the namespace tests in Zend/tests don't use the new ns
separator yet:
http://sitten-polizei.de/php/zend-test-ns-separator.diff
- Timm
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I'd like to add a new optional parameter to sybase_connect() for PHP
5.3. If set to TRUE it will force creation of a new link (and works just
like mysql_connect()'s new_link parameter).
http://sitten-polizei.de/php/sybase-connect-newlink.diff
seems like a good idea to have this and i
Hi,
I'd like to add a new optional parameter to sybase_connect() for PHP 5.3. If
set to TRUE it will force creation of a new link (and works just like
mysql_connect()'s new_link parameter).
http://sitten-polizei.de/php/sybase-connect-newlink.diff
Any objections?
- Timm
--
PHP Internals
Hi,
First of all, thanks for reviewing and the feedback. I knew this wasn't
perfect, and tried to understand what was previously done for __get and
__set and transport that to the static counterparts. Unfortunately not all
"infrastructure" like the std_*_property_handler callbacks is in place f
Hi,
[...__(set|get|unset|isset)static()...]
Patch looks pretty good. Plaease add __issetStatic and __unsetStatic.
Then provide tests and submit to HEAD. For 5.3 Lukas and Johannes have to
agree but I am sure they first want to see it in HEAD.
Hope we havent missed any other we need to make t
Hi again,
Attached you'll find an incomplete patch against PHP_5_3 to add this
functionality. If you like it let me know and I can finish it.
Darn, seems the list didn't like my text/plain attachment. Well, here we go:
http://sitten-polizei.de/php/get-static.diff
- Timm
--
PHP Internals
Hi,
on the member side, there is __get, __set, __isset and __unset - on the
method side, there is __call (and now: __callstatic). I was wondering why
there was no __getstatic and friends, but failed to find a reason.
Attached you'll find an incomplete patch against PHP_5_3 to add this
functi
Hi,
While we nearing the release of 5.3 (hopefully?), there are many
functions in the PHP code which still use old parameter parsing API
(zend_get_parameters_ex) instead of the new one (zend_parse_parameters).
I started taking care of ext/sybase_ct.
- Timm
--
PHP Internals - PHP Runtime Dev
Hi,
been busy again at work, sorry for the late answer.
I can look into setting up a "cruise-control"-like infrastructure on our
dev-machines that'll run these periodically.
Thanks for the offer, that would be very helpful. Is it possible to
have it for windows as well? It could also help if
Hi,
I like this generally, but cannot live with the BC issues raised.
Introducing all type names as keywords will make "class Object", "class
Integer" and so on give a syntax error.
That's actually not true, the patch does not introduce new keywords.
Hrm, the Wiki states it does:
http://w
Hi,
But if we work together, it should be possible to keep them. Let me
ask you the same than I ask to Lester, will you help us to keep
sybase_ct in php-src? You don't need to know C or php internals but to
actually provide tests and run them when we update the libraries or
releases RC.
Ther
Hi,
If anyone wants use type hinting, i believe that it should be strict.
Otherwise, it makes more sense to not use it.
I like this generally, but cannot live with the BC issues raised.
Introducing all type names as keywords will make "class Object", "class
Integer" and so on give a syntax e
Hi,
Can be moved PECL
- interbase
- fpdf
- fbsql
- sybase and sybase_ct
Sybase can be moved, it is unmaintained. I would've done this long ago if I
could, karma-wise.
Sybase_ct works perfectly for us at 1&1 and despite feature requests that
exist and me not having put big efforts into it o
Hi,
[...]
Later we added type hints to help code readability.
Let me jump at this:
==
function xpath($arg) {
if ($arg instanceof DomDocument) {
return new DomXPath($arg);
} else if ($arg instanceof XmlTree) {
return new DomXPath($this->loadXML($arg->getSource()));
} else i
Hi,
public function foo()
{
$bar= new Bar;
[...]
}
When I want to test the foo() method, I want to stub out the usage of
the Bar class, for example, and have Bar::doSomething() return a
pre-configured value instead of performing its normal operation.
This is where you'd star
Hi,
I've backported the namespaces patch to current CVS HEAD. Here it is:
http://sitten-polizei.de/php/php5-namespaces.diff
I've tested it with the .phpt-tests Dmitry provided. Enjoy:)
- Timm
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/uns
Hi,
recently, I noticed I was getting "Invalid pointer" and "4 bytes overflown"
messages executing PHP scripts connecting to sybase:
[...]php5/ext/sybase_ct/php_sybase_ct.c(818) : Block 0x09091060 status:
Invalid pointer: ((size=0x00B6) != (next.prev=0x08410004))
Invalid pointer: ((prev=0x0
Hi,
> Hello Jessie,
[...]
> you should simply try to come up with a working
> patch using a working separator which can clearly
> only be "\".
Why is \ the only character that could work? Because it's unused? What about
for examole the tilde (~) or the exclamation mark (!)? - both of them are
p
[...]
> - All imports are done at compile time.
So:
== Object.php ==
== script.php ==
...will not work. You'll need an opcode for this.
- Timm
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
[...]
> Any feature can and as experience proves it to be the case, will be
> abused. Plenty of people make horrid abuse of exceptions, but
> we still went ahead an added them anyway since they have many
> practical and useful applications. Same is true for goto, some
> people will surely
Hi,
> > Fix
> > ===
> > Allow anything the parser allows,
> > [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*
>
> Do you have a patch? :)
Sorry, no, I'm working under Windows at the moment *without* any development
tools installed except for cygwin, and IIRC PHP won't build with just that
(meaning I co
Hi,
unserialize() cannot unserialize objects whose names contain anything except
a-z, 0-9 and _, the parser allows those, though.
Example
===
$ cat unserialize.php
Expected behaviour
==
$ php unserialize.php
object(über)(0) {
}
Actual behaviour
$ php unser
Hi,
[...]
> I would like to see a PEAR (or even PECL) package that
> provides this functionality. I might even write it myself
> (given that I have a couple of long train rides coming up I
> will probably do this anyhow :-)
Come on, you don't need a long trainride for that.
http://sitten-p
Hi,
[...]
> I am playing around with an extension to the Zend Engine 2 to
> allow class properties and methods to be tagged with
> attributes. These attributes would then be accessible through
> the Reflection classes:
The PHP development team is usually against these kinds of OOP syntax sugar
Hi,
the following script:
getProperty('instance')->getValue());
?>
prints "UNKNOWN:0" - expected behaviour would be to print "NULL".
Attached is a diff against zend_reflection_api.c which fixes this.
--
Timm
If it ain't broken, it doesn't have enough features yet
Index: Zend/zend_reflection_ap
Hello,
I saw there are two new ReflectionClass methods:
* getStaticPropertyValue()
* getStaticPropertyValue()
How do these differ (excepting being one method call) from:
$value= $reflectionClass->getProperty('instance')->getValue();
and
$reflectionClass->getProperty('instance')->setVal
On Sun, 2005-02-20 at 09:44 -0500, Wez Furlong wrote:
> On Sun, 20 Feb 2005 12:36:01 +0100, Timm Friebe <[EMAIL PROTECTED]> wrote:
> > * If the number does not fit, I will try to convert it into a double
> > (PHP datatype float). This is the case for e.g. numeric(10) - value
On Sun, 2005-02-20 at 04:32 -0500, Wez Furlong wrote:
> On Sat, 19 Feb 2005 18:11:06 +0100, Timm Friebe <[EMAIL PROTECTED]> wrote:
> > with no indication what went wrong.
>
> Please read the OTN article to learn about the error modes in PDO.
> (I expect everyone to have
On Sun, 2005-02-20 at 10:44 +0100, Lukas Smith wrote:
> Timm Friebe wrote:
>
> > while testing PDO I was astonished to see that all values (regardless of
> > their types in the database) are returned as strings (in all extensions
> > except for PgSQL). Why is that so? It
On Sun, 2005-02-20 at 04:32 -0500, Wez Furlong wrote:
> Please open a pecl bug for this too,
Done so:
http://pecl.php.net/bugs/bug.php?id=3530
--
Timm
If it ain't broken, it doesn't have enough features yet
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http:
Hi,
while testing PDO I was astonished to see that all values (regardless of
their types in the database) are returned as strings (in all extensions
except for PgSQL). Why is that so? It _is_ quite inconsistent, isn't it?
Wasn't PDO supposed to _unify_ the RDBMS access apis?
--
Timm
If it ain't
Hi,
the following sourcecode:
prepare('select * from entries where id = :id');
$stmt->bindParam(':id', $argv[4]);
if (!$stmt->execute()) {
var_dump($dbh->errorInfo());
exit;
}
for ($i= 0, $s= $stmt->columnCount(); $i < $s; $i++) {
echo $i, ':: '; var_dump($stmt->getColumnMeta
Hi,
native_type (returned from PDOStatement::getColumnMeta()) was showing
weird behaviour in PDO/MySQL, mostly not existing at all and showing
incorrect values (e.g. "DECIMAL" for varchars).
A small typo is why:
Index: ext/pdo_mysql/mysql_statement.c
=
Hi,
has anyone noticed PDO/MySQL will always try to connect locally
regardless of what I put in the host=... DSN part?
The statement:
new PDO('mysql:host=php3.de', '', '***');
will only throw a PDOException:
Fatal error: Uncaught exception 'PDOException' with message
'SQLSTATE[HY000] [
On Thu, 2004-12-23 at 07:43 +0100, Sebastian Bergmann wrote:
> Andi Gutmans wrote:
> > Exceptions should be thrown for errors.
>
> And trying to get a method that does not exist is an error.
...which is fine, but without an elegant way of checking if that method
exists I don't think it should be
On Wed, 2004-12-22 at 14:28 -0800, Andi Gutmans wrote:
> Hi,
>
> It seems that in the past few months ReflectionClass::getMethod() was
> changed to throw an Exception if the method doesn't exist.
-- snip --
revision 1.113
date: 2004/07/19 19:14:10; author: sebastian; state: Exp; lines: +9
-5
On Mon, 2004-11-08 at 11:18, Marcus Boerger wrote:
> Hello Timm,
>
> you won't be able to tell from inside __call() whether a static or
> non static method was meant.
isset($this) does work fine.
> The same holds for __get() and __set().
> Also if we start using such code we'd need a class con
Hi,
is there any reason why __call shouldn't be invoked for static method
calls?
Reproduce
-
php5 -r 'class A { function __call($name, $args) { var_dump($name,
$args); } } A::foo();'
Actual result
-
Fatal error: Call to undefined method A::foo() in Command line code on
line 1
On Tue, 2004-11-02 at 13:52, Sebastian Bergmann wrote:
> Timm Friebe wrote:
> > Why was this added?
>
> I asked Marcus to add these.
He forgot to support invokeArgs(NULL, array(...)) for static invocation
("Warning: invokeArgs() expects parameter 1 to b
revision 1.136
date: 2004/10/31 15:30:53; author: helly; state: Exp; lines: +163 -1
- Add ReflectionFunction::invokeArgs(array)
- Add ReflectionMethod::invokeArgs(obj, array)
Why was this added?
These:
1) call_user_func_array(
array(new ReflectionMethod('class', 'method'), 'invoke',
On Tue, 2004-10-12 at 00:09, Andi Gutmans wrote:
> What do you expect to happen?
I expected it to work: Either give me a compile error ("You idiot! Why
are you using method modifiers in an interface?") or not complain and
let me code improper OO. The problem is the the confusing message.
Btw, the
On Sat, 2004-10-09 at 15:26, Timm Friebe wrote:
> Hi,
> the attached script produces:
[...Error message...]
- if (parent->common.fn_flags & ZEND_ACC_ABSTRACT
+ if (!(parent->common.scope->ce_flags & ZEND_ACC_INTERFACE)
+ && parent->c
Hi,
the attached script produces:
Fatal error: Can't inherit abstract function Drawable::draw()
(previously declared abstract in Figure) in /usr/home/thekid/r.php on
line 12
which is wrong because I am not inheriting anything but implementing an
interface.
The problem is that both zend_do_inheri
On Thu, 2004-09-30 at 23:10, Jason Garber wrote:
> Hello internals,
[...]
> If there is no better way, perhaps we could add constant called
> (SAPI_TYPE = 'CLI') or something like that to the language to
> facilitate this?
$ php -r 'var_dump(PHP_SAPI);'
string(3) "cli"
get_defined_constants
Hi,
here's a patch that fixes the following:
In file included from
/usr/home/thekid/devel/php/php/ext/readline/readline.c:28:
/usr/home/thekid/devel/php/php/ext/readline/php_readline.h:26: warning:
#warning Readline module will *NEVER* be thread-safe
/usr/home/thekid/devel/php/php/ext/readline/rea
name = 'Copy';
?>
$ php5 test.php
Warning: __clone method called on non-object in
/usr/home/thekid/test.php on line 6
[Wed Sep 15 00:07:35 2004] Script: 'test.php'
---
/usr/home/thekid/devel/php/php/Zend/zend_variables.c(179) : Block
0x083B67F0 status:
/usr/ho
Hello,
I'm experiencing very weird segfaults (and cannot reproduce them with a
small script) in PHP4 (to be exact: PHP4.3.8) - a backtrace is attached.
Now the weird thing is:
#0 0x080e3ff3 in php_char_to_str (str=0x0, len=1515870810, from=34 '"',
to=0x85d5f54 "\"\"", to_len=2,
result=0x8601
[...]
> My questions to the sybase_ct (Hi Timm ;-) ) maintainer:
>
> 1. How is the deadlock/retry logic in sybase_ct_query()
> intended to work? From my understanding a single SQL
> statement will never deadlock.
I have no idea why this was put in in the first place.
> 2. The default setting o
On Thu, 2004-07-29 at 04:12, Sara Golemon wrote:
> I wrote up a patch for implementing gotos in php scripts a couple months ago
> as an exercise in working with the Zend engine.
[...]
In the five or six year's I've been programming PHP, I haven't ever felt
the need to have "goto". Neither have I s
On Fri, 2004-07-09 at 19:04, Gunnar von Boehn wrote:
> Hi,
>
[...]
> I noticed that all long scripts (over 1000 lines) will kill the
> Apache/PHP build.
Sounds like http://bugs.php.net/bug.php?id=28064 to me.
- Timm
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit
On Sat, 2004-06-19 at 19:00, Lester Caine wrote:
> Timm Friebe wrote:
[...]
> Anybody know how to use this script with Eclipse CVS on Windows ?
Get cygwin (http://cygwin.com/) or check Google on a Windows version of
it (http://www.google.com/search?q=rsync%20Windows).
- Timm
--
PHP Int
On Sat, 2004-06-19 at 18:37, Lester Caine wrote:
> Timm Friebe wrote:
[...]
> > Use rsync:
> >
> > -- snip rsync.sh from our php.net mirror --
> > #!/bin/sh
> >
> > base="/home/httpd/php3.de"
> > /usr/local/bin/rsync -avzC --delete --dele
Hello Lester,
On Sat, 2004-06-19 at 18:22, Lester Caine wrote:
> OK I've downloaded phpweb and tried to run it on PHP5, but have fallen
> at the first hurdle.
>
> index.php calls for
> include/pregen-events.inc
> but I can't see that on the CVS - where am I going wrong :)
Use rsync:
-- snip rs
Hello,
here's a patch that will fix the prototypes contained in the source code
(Reflection_Class --> ReflectionClass etc.).
Can somebody commit this? I have had this lying around for a while now
and would like to get rid of the "M" before zend_reflection_api.c:)
- Timm
Index: Zend/zend_reflectio
On Fri, 2004-06-18 at 21:43, Andrei Zmievski wrote:
[...]
> Wow. When did Java get $ for variables?
It already has:)
$ cat Dollar.java
public class Dollar {
public static void main(String[] args) {
String $str= "Hello";
System.out.println($str);
}
}
$ /usr/local/jdk1.4.2/bin/javac Do
On Tue, 2004-06-01 at 16:50, Florian Schaper wrote:
> Derick Rethans wrote:
> > On Tue, 1 Jun 2004, Florian Schaper wrote:
> >
> >> An Zend API 2.0 paper I read a while ago said something about
> >> "delete" being implemented in PHP5.
> >> However, no delete.
> >>
> >> Was this feature dropped? I h
On Tue, 2004-06-01 at 15:11, Bert Slagter wrote:
> Hi All,
>
> I have a class and a subclass, both with a static method:
[...]
> Somehow this behaviour seems logical, on the other hand I don't think
> it's desired. I think that 'self' should point to the current class,
> even if the static metho
On Sun, 2004-05-30 at 14:18, Andi Gutmans wrote:
[...]
> I saw it was already commited before I had a chance to respond. In any
> case, I think that the patch is quite harmless but I don't like the != NULL
> && !true logic. It's inconsistent with what is considered true/false in PHP
> today. I s
On Sat, 2004-05-22 at 13:48, Sebastian Bergmann wrote:
> The following code triggers a segfault with the attached stacktrace:
>
>class UML_Class extends ReflectionClass {
>}
>
>print ReflectionClass::export('UML_Class');
>?>
Works fine here.
- Timm
--
PHP Internals - PHP
On Fri, 2004-05-21 at 23:02, Edin Kadribasic wrote:
> > Edin just fixed the PHP5 branch, i MFH'ed the fixed to PHP4.
> >
> > - Timm
>
> You should probably test ZTS build before comitting as well. Most windows
> build problems stem from the fact that ZTS build gets broken which can be
> tested on
On Fri, 2004-05-21 at 21:59, Timm Friebe wrote:
> On Fri, 2004-05-21 at 21:19, Daniel Convissor wrote:
[...]
> > It would be appreciated if we can get Sybase working. Right now it causes
> > PHP to crash. http://bugs.php.net/bug.php?id=28354
>
> I'm able to reproduce
On Fri, 2004-05-21 at 21:19, Daniel Convissor wrote:
> Hi Ilia:
>
> > I'd would like to release the RC1 of 4.3.7 this Thursday, so if you have any
> > pending bug fixes please commit them. If you need more time, please let me
> > know.
>
> It would be appreciated if we can get Sybase working.
Hello,
are we off one here?
$ php-dev -r 'var_dump(-2147483648);'
float(-2147483648)
$ php-dev -r 'var_dump(-2147483647 -1);'
int(-2147483648)
- Timm
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 2004-05-16 at 18:16, Timm Friebe wrote:
> [...]
> Or, replying to myself, simply use convert_scalar_to_number() from
> Zend/zend_operators.c which (AFAIS) does pretty much the same. The
> testcase I wrote for this (attached) is passed here.
>
> Ard, do you use sybase_ct
On Sun, 2004-05-16 at 17:57, Timm Friebe wrote:
> On Sun, 2004-05-16 at 17:17, Ard Biesheuvel wrote:
[...]
> -- snip --
> Z_STRLEN(result->data[i][j]) = result->lengths[j]-1;
> Z_STRVAL(result->data[i][j]) = estrndup(result->tmp_buffer[j],
> result->lengths[j
On Sun, 2004-05-16 at 17:17, Ard Biesheuvel wrote:
> Hi Timm,
>
> I have an old Alpha PWS433 running FreeBSD which I use for this kind of
> stuff.
>
> > If so, what does this print?
> > --
> > #define LONG_MAX 2147483647L
>
On Sat, 2004-05-15 at 20:11, Ard Biesheuvel wrote:
[...LONG_MIN / LONG_MAX comparison]
> Hi Timm,
>
> I think this code is broken on 64-bit archs, as doubles lack the
> precision to accurately represent a 64-bit long. Also, comparing double
> values with LONG_[MIN|MAX] is dangerous for the same
On Fri, 2004-05-14 at 17:34, Alex Kiesel wrote:
> Hi Internals, hi Timm,
[...]
> This patch (committed with rev. 1.89 in ext/sybase_ct/php_sybase_ct.c)
> introduces a behaviour I consider broken:
>
> # select 2147483647
> becomes an int because Sybase automatically converts the input into
> an
[EMAIL PROTECTED]:~/devel/php/tests > cat tick.php
[EMAIL PROTECTED]:~/devel/php/tests > php-dev tick.php
Bus error (core dumped)
- Timm
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
$ php -r 'function e($code, $msg, $file, $line, &$context) { }
set_error_handler("e"); trigger_error("Hello");'
Notice: Hello in Command line code on line 1
Segmentation fault (core dumped)
Affected: PHP4, PHP5. Does not occur when & before $context is omitted.
- Timm
--
PHP Internals - PHP Ru
On Tue, 2004-05-11 at 14:36, Jason Garber wrote:
> Consider this below:
[...]
> class UserClass{
> public static function forName($name, $c = NULL) {
>if(is_null($c))
> //...
>elseif($c instanceof ClassLoader)
> //...
>else
> //Throw an erro
On Tue, 2004-05-11 at 14:23, Andi Gutmans wrote:
> At 11:44 AM 5/11/2004 +0200, Timm Friebe wrote:
[...]
> >Will this affect optional arguments? I.e., will the following still
> >work?
[...]
> Nope, why would it work? If we make the type hint strict (which I think we
> s
On Mon, 2004-05-10 at 18:16, Andi Gutmans wrote:
> I think it's hard to put closure on this type hints issue.
[...]
> As no good syntax has been found for the less common case of allowing
> NULL's, I think the best solution for now is not to allow null in the
> regular type hint syntax, and have
On Sat, 2004-05-01 at 22:09, Marcus Boerger wrote:
> Hello internals,
[...]
While thinking about this for a while and playing around with different
notations, I stumbled across the following:
function foo(Foo $f = 1) { }
This will actually "compile" (but never work). It doesn't make any sense
On Sat, 2004-05-01 at 22:09, Marcus Boerger wrote:
> Hello internals,
>
> while working with php 5 the last days i find it more and more
> annoying that we allow NULL with type hints.
> From my perspective allowing NULL with typehints would happen
> only very rare.
I don't think this is true.
On Sun, 2004-04-25 at 19:02, Julian Reich wrote:
> Hi all,
>
> Referring to call_user_func_array() I would like to suggest a new
> function: new_object_array().
> I'm working on a php5 application framework and I would like to
> implement something I call an unified factory. The problem is that
On Fri, 2004-04-16 at 17:51, Derick Rethans wrote:
> On Fri, 16 Apr 2004, Uwe Schindler wrote:
>
> > Appended a patch to the sybase extensions, that set the default value for
> > the sybase appname to ("PHP " PHP_VERSION). I have seen that in PHP 4.3.6
> > where this variable is statically set to
On Thu, 2004-04-15 at 21:36, Chuck Hagenbuch wrote:
> Quoting Hartmut Holzgraefe <[EMAIL PROTECTED]>:
[...]
> If this were added, wouldn't it make sense to use the convention
> already adopted
> by perl?
>
> $foo |= 'default';
Already used:
$ php -r '$a= 1; $a |= 2; var_dump($a);'
int(3)
- Tim
On Fri, 2004-04-09 at 09:33, Andi Gutmans wrote:
> Not sure if I replied to the list but this should be fixed now.
Verified.
- Timm
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 2004-04-03 at 21:26, Andi Gutmans wrote:
> In general, I have no problem with adding this consistency.
> Where is a reference to $instance held until the exception occurs?
What kind of reference?
This is what I used to verify the (instance) functionality:
prefix,
get_class($e),
On Sat, 2004-04-03 at 20:00, Jochem Maas wrote:
[...]
> Having read all the posts on studlyCaps on this list, and understanding
> that studlyCaps was the std. for all new OO APIs I found the following a
> little odd:
>
> The documentation at
> http://sitten-polizei.de/php/reflection_api/docs/lan
Hello,
I wanted to check back on the status of my patch to
zend_builtin_functions.c I sent a while ago. It changes
set_exception_handler() to accept the pseudo-type "callable" (instead of
a string referring to a global function).
Examples:
set_exception_handler('function_name');
set_exception
Hi,
accessing a non-existant member of (or calling a member function on) an
instance of __PHP_Incomplete_Class results in a bus error:
[EMAIL PROTECTED]:~/devel/php/php > cat incomplete_class.php
member);
?>
[EMAIL PROTECTED]:~/devel/php/php > php-dev incomplete_class.php
object(__PHP_Incomplete_
1 - 100 of 195 matches
Mail list logo