On Thu, 2009-03-26 at 11:38 +0100, Derick Rethans wrote:
> I mentioned on twitter that proper docs would be useful too, let's see
> if anybody writes to the doc list.
Just tell me what I need to do, and I will write the SPL docs
What format do they need to be in. What program is used to make the
This one time, at band camp, Brian Moon wrote:
> I would agree except that doing lots of work on arrays in user space
> consumes a lot of memory because of the number of opcodes used when
> working on removing/adding things to the array.
This is exactly the scenario for which SPL Iterators wer
This one time, at band camp, "Mike Panchenko" wrote:
> Why not just link straight to the tutorial on your site? ;) Not sure what
> your point is, other than "there's a way to do this in userland," which I
> cover in my email. Maybe some sentences to accompany it would make it easier
> to understa
This one time, at band camp, "Mike Panchenko" wrote:
> Hey everybody, I'm new both to the list and to hacking the internals, so
> I'll try to keep it short and humble.
>
> I've written an array_flatten function which just takes all elements from a
> nested array and pushes them into a single ind
This one time, at band camp, "jvlad" <[EMAIL PROTECTED]> wrote:
> May I suggest something in this area?
May I suggest something also.. Lets just let namespaces die and let
it become a repressed memory as it seems it is more trouble that it
is worth. Seriously.
For 10+ years we have got on just
>> PHP 5.3 appears (to me at least) ready for release, give or take a
>
Will PHP 5.3 be released with fileinfo or will be still me made to use
hacks to detirmine mime types?
Kevin
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Back in Jan/Feb of 2007 I raised the issue of including
the pecl fileinfo package into 5.3 and 6.0.
This idea was mostly regarded as a good idea as PHP lacks
any method of checking file types, aside from checking the
file extension.
The lack of checking is, I feel, a major oversite in the package
This one time, at band camp, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote:
> Will this mechanism for differentiating between TEXT and BLOB work in
> MySQL 3.23?
>From what I can see of the c api, the 3.23 and 4 api is the same. So
should work in both.
Kevin
--
"Democracy is two wolves and a l
This one time, at band camp, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote:
> Will this mechanism for differentiating between TEXT and BLOB work in
> MySQL 3.23?
unable to test with 3.*
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb
This one time, at band camp, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote:
> Will this mechanism for differentiating between TEXT and BLOB work in
> MySQL 3.23?
unable to test with 3.*
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb
currently pdo_mysql is unable to discern between a BLOB and a TEXT field
in mysql_statement.c
By using the current if (IS_BLOB(F->flags)), which is now deprecated in
the mysql c api, it will be true for both TEXT and BLOB fields.
By updating a little to the newer api and checking with F->type we
This one time, at band camp, Stefan Esser <[EMAIL PROTECTED]> wrote:
> Stop flooding my inbox with your unqualified comments.
> You can write the patch yourself, can you?
> Or can't you? Then shut the fuck up.
I'm not the one whining about nothing being done.
This constant stream of dribble about
This one time, at band camp, Stefan Esser <[EMAIL PROTECTED]> wrote:
> The whole filter problematic is still unsolved. The filter hooks were
> still not moved into php_register_variable_ex so that they
> cannot be bypassed by mistake of a 3rd party PHP extension that
> implements another POST con
Is it possible to include the current pecl extension fileinfo.
It is just silly not having the ability to verify a file type as a
standard feature. This was discussed earlier and it was thought to
have some merit. Can we make it happen?
Kevin
--
PHP Internals - PHP Runtime Development Mailing L
This one time, at band camp, Antony Dovgal <[EMAIL PROTECTED]> wrote:
> Also, to repeat myself here, there is also no way to use filepro database,
> hwapi, msession,
> cpdf, dio, fam, ingres, mnogosearch, yp API, Ovrimos, PayFlow Pro and a bunch
> of other functions
> without using PECL.
I app
This one time, at band camp, Antony Dovgal <[EMAIL PROTECTED]> wrote:
> While mime_magic is deprecated, it does not mean it cannot be used.
> So there certainly is a way to do it without PECL.
Currently, but it will be moved sometime in the future.
> Anyone capable of installing core extension,
As we discussed on irc, mime_magic is now deprecated, there is currently no
function
available to detirmine mimetype without pecl/pear.
You could use exec('file -bi'..) or some other fallback or ugly hack that only
increases
code complexity and does not lend portability as they tend to be system
This one time, at band camp, Zeev Suraski <[EMAIL PROTECTED]> wrote:
> - Consider making this a compile time option with significant
> overhead and a big DO NOT ENABLE IN PRODUCTION, so that people have
> an even clearer idea they shouldn't rely on it to find their bugs,
> and that in fact it
This one time, at band camp, Christian Schneider <[EMAIL PROTECTED]> wrote:
> But my favourite solution would be to
> a) have namespaces handling this issue
So, we've come full circle.
PHP does not support namespaces, so you should be prefixing.
Kevin
--
"Democracy is two wolves and a lamb
Can we add the below tests to 013.phpt in filter
var_dump(filter_var(TRUE, FILTER_VALIDATE_BOOLEAN))
var_dump(filter_var(FALSE, FILTER_VALIDATE_BOOLEAN))
returns bool(true) and bool(false) respectively.
perhaps add them to the Logical filter array in 034.phpt
also may do some good.
Kevin
-
Ilia Alshanetsky wrote:
I make a
decision I'd like to hear some feedback from other developers and users
of PHP on what they think.
Personally, I'd prefer to take filter out entirely from the 5.2 tree.
I would like to see it stay, this extension is the one that will finally
shut the "PHP
This one time, at band camp, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote:
>
> [] (+1) please remove that redundant strictness again
> [X] (-1) leave as it is, we need strict OO implementation
> [ ] ( 0) what the hell are you talking about?
0
--
PHP Internals - PHP Runtime Development Mailing Li
This one time, at band camp, Pierre <[EMAIL PROTECTED]> wrote:
> > if var was abc1234 then it would return NULL, is that correct?
>
> False if the value is not valid, null if the value does not exist (for
> example with input_get or input_get_args). In the case of filter_data,
> as you pass the
should the return values be either NULL or 1234?
well, it should return 1234
if var was abc1234 then it would return NULL, is that correct?
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
--
PHP Internals - PH
This one time, at band camp, Marcus Boerger <[EMAIL PROTECTED]> wrote:
> Hello Jared,
>
>
> UPS i see my failure in writing. I meant array_valid($array) of course :-)
>
> i have always been better in writing patches then telling tales.
I like the idea of an SPL feel to array functions
Kevin
This one time, at band camp, "Wez Furlong" <[EMAIL PROTECTED]> wrote:
> The manual doesn't tell you that you can use spaces, so simply don't do it.
but in this example we have a space and it works
mysql: host = localhost; dbname=test
Kevin
--
"Democracy is two wolves and a lamb voting on what
Not a bug, but inconsistant behavior in PDO when calling
$dsn = new PDO("sqlite: dbname.sdb");
The space after the colon _should_ be encoded but if not it fails and
needs correctly to read
$dsn = new PDO("sqlite:dbname.sdb");
Pierre pointed to a user note in the manual
http://www.php.net/manua
This one time, at band camp, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote:
> Google is doing their Summer of Code thing again this year. You can
> read more about it here: http://code.google.com/summerofcode.html
ahh, just the spring board for the srm updates needed to give php
persistent objects
This one time, at band camp, Alan Knowles <[EMAIL PROTECTED]> wrote:
> Not sure if it's a prefect solution, but this could easily be done:
--8< --- snip
I dont see why line numbering is an issue.
If you want to highlight code ala pastebin style, simpley
echo hightlight_string($string, 1);
or if
This one time, at band camp, Aizat Faiz <[EMAIL PROTECTED]> wrote:
> How about including the patch, and having a php.ini option to
> enable/disable the line numbering.
I dont think this is a good option, perhaps some other trigger
file.phps?numbers or something
Kevin
--
"Democracy is two wol
Addition of line numbering to phps
This is a rather simple addition and will be benificial to all who use phps
for debugging and/or displaying code. Its a simple diff to zend_highlight.c
Patches have been written and languish simply awaiting inclusion in HEAD
Can we have a show of hands of those
This one time, at band camp, "Steph Fox" <[EMAIL PROTECTED]> wrote:
> > Seems to be 3rd wheel
> > Also steph, I cannot mail you @zend.com, I get user unknown error
>
> Everyone else's mail comes through OK, so I think that was probably a
> temporary issue.
>
> No idea what '3rd wheel' means...
This one time, at band camp, "Steph Fox" <[EMAIL PROTECTED]> wrote:
> Given that practically everyone who survived the preceding GOTO discussion
> seemed to think it was a good idea at the time, could you please re-visit
> it, evaluate it, discuss it (as opposed to talking about GOTO, which is
This one time, at band camp, Jeff Moore <[EMAIL PROTECTED]> wrote:
> To give SplObjectStorage a better name. My best suggestion is
> SplUniqueObjectContainer. There may be a better choice.
Why not just call it Betty.
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for
This one time, at band camp, Wez Furlong <[EMAIL PROTECTED]> wrote:
> Care to elaborate?
When using session.save_handler=files all works fine using /tmp
If this is changed to sqlite, I get errors cannot write to /tmp
Kind regards
Kevin
--
"Democracy is two wolves and a lamb voting on what to h
I have played with this and it looks a good idea on paper
but have not been successful in practice. If this is not
going to work easily, lets remove the option for session.save_handler
tis a silly idea.
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a
This one time, at band camp, Stanislav Malyshev <[EMAIL PROTECTED]> wrote:
> HH>>So i'm all for keeping the $this-> prefix even though it adds some
> HH>>extra typing ...
>
> Just a thought - we could have compromise solution, i.e. some syntax sugar
> to mean $this->foo - for example $.foo or s
This one time, at band camp, "Ron Korving" <[EMAIL PROTECTED]> wrote:
> The problem with this would be that it can't be decided on a per-case basis,
> but only for the whole switch, which would make the execution slower. That's
> why I'd prefer a "regcase", but I guess this can be considered ugly
This one time, at band camp, Wez Furlong <[EMAIL PROTECTED]> wrote:
> Looks like implementing traversable also requires implementing some
> other interfaces.
> I've removed this line from the code in CVS, so that people can
> actually use the snapshots; they're currently all hard-broken with
> thi
PHP Fatal error: Class PDOStatement must implement interface Traversable as
part of either Iterator or IteratorAggregate i
n Unknown on line 0
make: [test] Error 254 (ignored)
exit 0;
/home/kevin/html/php/dev/this/php5-200509110430/ext/sqlite/libsqlite/src/parse.y
Installing PHP SAPI module:
This one time, at band camp, Wez Furlong <[EMAIL PROTECTED]> wrote:
> PDO_MYSQL only supports up to version 4 (the stable releases).
> I've had a long day, so I don't feel particularly motivated to add
> mysql 5 support, and probably won't for PHP 5.1.
sounds good to me
Kevin
--
"Democracy is
This one time, at band camp, Wez Furlong <[EMAIL PROTECTED]> wrote:
> What version of the mysql libraries do you have?
MySQL 5.0.0-dev
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
--
PHP Internals - PHP Runt
FC1 and FC4
Using php5-200509110430
gcc-3.3.2
/home/kevin/html/php/dev/this/php5-200509110430/ext/pdo_mysql/mysql_statement.c:
In function `pdo_mysql_stmt_execute':
/home/kevin/html/php/dev/this/php5-200509110430/ext/pdo_mysql/mysql_statement.c:121:
error: `STMT_ATTR_UPDATE_MAX_LENGTH' undeclare
This one time, at band camp, Jani Taskinen <[EMAIL PROTECTED]> wrote:
> No. What OS? What compiler and what compiler version?
> Are you using a snapshot? What configure line was used?
Fedora, gcc, snap php5-200509051030, config line is...
./configure --host=i386-redhat-linux --build=i38
curl-devel-7.10.6 and curl-7.10.6
In function `zif_curl_multi_init':
/php/php5-200509051030/ext/curl/multi.c:65: undefined reference to
`_zval_ptr_dtor_wrapper'
ext/sockets/.libs/sockets.o(.text+0x1741):
Is this a good error?
Kevin
--
"Democracy is two wolves and a lamb voting on what to have f
This one time, at band camp, Peter Brodersen <[EMAIL PROTECTED]> wrote:
> If all you want is to supply glob() with a list of full or partial
> patterns I think the desired functionality is already present.
But not on all platforms.
Kevin
--
"Democracy is two wolves and a lamb voting on what
This one time, at band camp, Peter Brodersen <[EMAIL PROTECTED]> wrote:
> >$arr = array('jpg', 'gif', 'tif', 'pdf', 'bmp', 'raw');
> >foreach(glob($arr as $file)){ echo $file; }
>
> glob is currently extremely flexible in its input with the right flags
> and can expand a list. Eg:
>
> print_r(gl
This one time, at band camp, Kevin Waterson <[EMAIL PROTECTED]> wrote:
> array glob ( array patterns [, int flags] )
Should be
array glob ( mixed pattern [, int flags] )
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb
Currently glob takes a string such as
array glob ( string pattern [, int flags] )
I would like to make this
array glob ( array patterns [, int flags] )
This would tidy up much code where a series of OR's are used to match
different patterns.
$arr = array('jpg', 'gif', 'tif', 'pdf', 'bmp', 'raw'
Some of us have been playing around with static and have come up with this..
not my code
I am curious as to why this errors. What is happening internally.
My thoughts were that is was a scope issue.
Kind regards
Kevin
-
"Democracy is two wolves and a lamb voting on what to have for lunch
This one time, at band camp, Wez Furlong <[EMAIL PROTECTED]> wrote:
> Feature-wise, it's missing scrollable (eg: random access) cursors and
> Marcus' iterators (sorry Marcus).
So, when do we see iterators?
Kevin
-
"Democracy is two wolves and a lamb voting on what to have for lunch.
Lib
utside the web root and in
user space.
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing L
ave a go at it.
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Devel
e problem..
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \____)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
tten?
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \____) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe,
rhaps a series of of articles on the most important
features?
Just my $0.02
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
rhaps a series of of articles on the most important
features?
Just my $0.02
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
not join us at
[EMAIL PROTECTED]
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \____) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
This one time, at band camp, Kevin Waterson <[EMAIL PROTECTED]> wrote:
> Last weekend I took a roll of Kodak T-Max 100 with the MZ-S
> When developed, the film is hopelessly under exposed, as if
> the flashes had never been used. I was using an off camera
> FGZ-360 flash to f
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing
super global is that it is available in all scopes.
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
.5.0
Kind regards
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \____) \_||_| \____) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
d regards
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \____) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
semi-colon in it.
Kind regards
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \____) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To
n you submit a patch?
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
er.
Kind regards
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
27; '--with-ldap=shared'
'--with-mysql=shared,/usr' '--with-pgsql=shared' '--enable-memory-limit'
'--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dio'
'--enable-mcal' '--with-pspell
=/usr/kerberos
Kevin
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
__
(_ \
_) )
| / / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net
72 matches
Mail list logo